Changeset 66464 in spip-zone


Ignore:
Timestamp:
Oct 3, 2012, 9:12:49 AM (7 years ago)
Author:
cedric@…
Message:

Post publication des articles : les documents ne prenaient pas le bon statut&date associes (Ferme https://core.spip.org/issues/2849)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • _core_/branches/spip-3.0/plugins/medias/action/editer_document.php

    r63222 r66464  
    167167        $statut_ancien = $row['statut'];
    168168        $date_publication_ancienne = $row['date_publication'];
     169
     170        /* Autodetermination du statut si non fourni */
    169171        if (is_null($statut)){
    170172                $statut = 'prepa';
     
    189191                        elseif ($row['objet']=='article'
    190192                          AND $row2 = sql_fetsel('date','spip_articles','id_article='.intval($row['id_objet'])." AND statut='publie'")){
     193                                $statut = 'publie';
    191194                                $date_publication = min($date_publication,strtotime($row2['date']));
    192195                        }
Note: See TracChangeset for help on using the changeset viewer.