diff --git a/formulaires/editer_post.html b/formulaires/editer_post.html index 9c424fa..9b29b36 100644 --- a/formulaires/editer_post.html +++ b/formulaires/editer_post.html @@ -138,12 +138,12 @@
Emplacements - -
- + [(#UNSEUL|=={oui}|oui) + + ] + #SET{selected,''} @@ -152,9 +152,9 @@ - -
- + + +
diff --git a/formulaires/editer_post.php b/formulaires/editer_post.php index 99e3251..532a6de 100644 --- a/formulaires/editer_post.php +++ b/formulaires/editer_post.php @@ -126,12 +126,13 @@ function formulaires_editer_post_traiter_dist($id_article = 0, $redirect = ''){ sql_updateq('spip_documents_liens',array('id_objet' => intval($id_article)), $where); } + var_dump($date); + // maj de l'article $set = array( 'titre' => _request('titre'), 'texte' => _request('texte'), 'soustitre' => _request('soustitre'), - 'date' => date("Y-m-d H:i:s"), 'descriptif' => _request('descriptif'), 'date_agenda' => _request('date_agenda'), 'statut' => _request('statut'), @@ -178,7 +179,7 @@ function formulaires_editer_post_traiter_dist($id_article = 0, $redirect = ''){ $ids_mots = sql_allfetsel('M.id_mot AS id_mot', $from, $where); $ids_mots = array_column($ids_mots, 'id_mot'); - $coches = _request('id_groupe_'.$id_groupe); + $coches = _request('id_emplacements'); if (count($coches)) { $associer = array_diff($coches, $ids_mots); $dissocier = array_diff($ids_mots, $coches);