X-Git-Url: https://git.cyclocoop.org/?a=blobdiff_plain;f=www%2Fecrire%2Faction%2Fediter_objet.php;h=6d1bfcc7714ef5ca555a4cdd5a4cb2ab219179c4;hb=f08ec3a19775a7a173534b2d5cb7e9920b6253a6;hp=7fcf0f49ae2c61dc021519d79939289d3716bf9c;hpb=58a2baa86ad2e12b4ff338d137f826a0a10ccbd7;p=lhc%2Fweb%2Fwww.git diff --git a/www/ecrire/action/editer_objet.php b/www/ecrire/action/editer_objet.php index 7fcf0f49..6d1bfcc7 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';