Changeset 91541 in spip-zone


Ignore:
Timestamp:
Aug 30, 2015, 6:58:23 PM (6 years ago)
Author:
cedric@…
Message:

coquille sur le nom du champ archive_statut qui rendait la mise a jour inoperante

File:
1 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/archive/trunk/archive_pipelines.php

    r91523 r91541  
    3838function archive_post_edition($flux){
    3939        if($flux['args']['action'] == 'instituer' && $flux['args']['statut_ancien'] != 'archive'  && $flux['args']['statut_nouveau'] == 'archive'){
    40                 sql_updateq($flux['args']['table'],array('archive_date' => date('Y-m-d H:i:s'),'statut_archive'=>$flux['args']['statut_ancien']),id_table_objet($flux['args']['table'])."=".intval($flux['args']['id_objet']));
     40                sql_updateq($flux['args']['table'],array('archive_date' => date('Y-m-d H:i:s'),'archive_statut'=>$flux['args']['statut_ancien']),id_table_objet($flux['args']['table'])."=".intval($flux['args']['id_objet']));
    4141        }
    4242        return $flux;
Note: See TracChangeset for help on using the changeset viewer.