Ignore:
Timestamp:
Jan 22, 2020, 9:20:39 PM (9 months ago)
Author:
nicod_
Message:

Ne pas considérer une rubrique comme publiée quand on lui ajoute un logo.
https://core.spip.net/issues/4424

Location:
_core_/plugins/medias
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • _core_/plugins/medias

    • Property subgit:lock:de8ad011f9d814f7b0a62893ece94fd3f751fe04 deleted
    • Property subgit:lock:f35316bcbe28f7681b01db99fc9ecf04208d529c set to 2020-01-22T22:20:58.959
  • _core_/plugins/medias/medias_pipelines.php

    r119512 r119908  
    312312                        $flux['data']['document'] = sql_countsel(
    313313                                'spip_documents AS D JOIN spip_documents_liens AS L ON D.id_document=L.id_document',
    314                                 'L.objet=' . sql_quote($objet) . 'AND L.id_objet=' . intval($id) . " AND (D.statut='publie')"
     314                                'L.objet=' . sql_quote($objet) . 'AND L.id_objet=' . intval($id) . " AND (D.statut='publie') and D.mode NOT IN ('logoon','logoff') "
    315315                        );
    316316                } else {
    317317                        $flux['data']['document'] = sql_countsel(
    318318                                'spip_documents AS D JOIN spip_documents_liens AS L ON D.id_document=L.id_document',
    319                                 'L.objet=' . sql_quote($objet) . 'AND L.id_objet=' . intval($id) . " AND (D.statut='publie' OR D.statut='prepa')"
     319                                'L.objet=' . sql_quote($objet) . 'AND L.id_objet=' . intval($id) . " AND (D.statut='publie' OR D.statut='prepa') and D.mode NOT IN ('logoon','logoff')"
    320320                        );
    321321                }
Note: See TracChangeset for help on using the changeset viewer.