dépôts
/
ptitvelo
/
web
/
www.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[SPIP] ~maj 3.0.13 -> 3.0.14
[ptitvelo/web/www.git]
/
www
/
ecrire
/
action
/
editer_objet.php
diff --git
a/www/ecrire/action/editer_objet.php
b/www/ecrire/action/editer_objet.php
index
cc5658f
..
17a7ece
100644
(file)
--- a/
www/ecrire/action/editer_objet.php
+++ b/
www/ecrire/action/editer_objet.php
@@
-3,7
+3,7
@@
/***************************************************************************\
* SPIP, Systeme de publication pour l'internet *
* *
/***************************************************************************\
* SPIP, Systeme de publication pour l'internet *
* *
- * Copyright (c) 2001-201
2
*
+ * Copyright (c) 2001-201
4
*
* Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James *
* *
* Ce programme est un logiciel libre distribue sous licence GNU/GPL. *
* Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James *
* *
* Ce programme est un logiciel libre distribue sous licence GNU/GPL. *
@@
-178,8
+178,15
@@
function objet_inserer($objet, $id_parent=null, $set=null) {
$champs['langue_choisie'] = 'non';
}
$champs['langue_choisie'] = 'non';
}
- if (isset($desc['field']['statut']))
- $champs['statut'] = 'prepa';
+ if (isset($desc['field']['statut'])){
+ if (isset($desc['statut_textes_instituer'])){
+ $cles_statut = array_keys($desc['statut_textes_instituer']);
+ $champs['statut'] = reset($cles_statut);
+ }
+ else
+ $champs['statut'] = 'prepa';
+ }
+
if ((isset($desc['date']) AND $d=$desc['date']) OR isset($desc['field'][$d='date']))
$champs[$d] = date('Y-m-d H:i:s');
if ((isset($desc['date']) AND $d=$desc['date']) OR isset($desc['field'][$d='date']))
$champs[$d] = date('Y-m-d H:i:s');