diff --git a/cosmogramme/sql/patch/patch_260.php b/cosmogramme/sql/patch/patch_260.php index e4b67745eafb0caaf8e2ac31d18eba0c6a064062..78b6993ea98f21c1c074f3195a67e74976801e74 100644 --- a/cosmogramme/sql/patch/patch_260.php +++ b/cosmogramme/sql/patch/patch_260.php @@ -1,4 +1,4 @@ -<? +<?php $adapter = Zend_Db_Table::getDefaultAdapter(); $adapter->query('alter table modele_fusion add column type varchar(255) NULL'); ?> \ No newline at end of file diff --git a/library/ZendAfi/Form/ModeleFusion.php b/library/ZendAfi/Form/ModeleFusion.php index 57f4d775250c646effdbf163a8503ada202f3ea3..b3e79fe19c7d0e757c55424d37d2d781e108248b 100644 --- a/library/ZendAfi/Form/ModeleFusion.php +++ b/library/ZendAfi/Form/ModeleFusion.php @@ -47,7 +47,14 @@ class ZendAfi_Form_ModeleFusion extends ZendAfi_Form { 'label' => '', 'value' => $datas['contenu'], 'required' => true, - 'allowEmpty' => false]); + 'allowEmpty' => false]) + ->addDisplayGroup(['nom', 'type'], + 'options', + ['legend' => 'Modification du modele']) + ->addDisplayGroup(['contenu'], + 'contenu', + ['legend' => 'Contenu']); + $form->populate($datas); return $form;