X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_ecrire%28%22cfg%22%2C%22cfg=%24lien%22%29%20.%20%22?a=blobdiff_plain;f=www%2Fecrire%2Faction%2Fediter_objet.php;h=6d1bfcc7714ef5ca555a4cdd5a4cb2ab219179c4;hb=dae7b78d26d32fb23e8c524f795bbaf40e685c6a;hp=7fcf0f49ae2c61dc021519d79939289d3716bf9c;hpb=33b1462fcc1e5fa853f6ca84daa7cff72cdbe706;p=ptitvelo%2Fweb%2Fwww.git diff --git a/www/ecrire/action/editer_objet.php b/www/ecrire/action/editer_objet.php index 7fcf0f4..6d1bfcc 100644 --- a/www/ecrire/action/editer_objet.php +++ b/www/ecrire/action/editer_objet.php @@ -180,7 +180,8 @@ function objet_inserer($objet, $id_parent=null, $set=null) { if (isset($desc['field']['statut'])){ if (isset($desc['statut_textes_instituer'])){ - $champs['statut'] = reset(array_keys($desc['statut_textes_instituer'])); + $cles_statut = array_keys($desc['statut_textes_instituer']); + $champs['statut'] = reset($cles_statut); } else $champs['statut'] = 'prepa';