Ignore:
Timestamp:
May 21, 2019, 3:49:54 PM (4 months ago)
Author:
bruno@…
Message:

Fix #4272 : ne pas supprimer les vignettes de documents dans l'action de suppression des orphelins

File:
1 edited

Legend:

Unmodified
Added
Removed
  • _core_/plugins/medias/action/supprimer_tous_orphelins.php

    r113294 r115450  
    4848        //on isole les orphelins
    4949        $select = sql_get_select('DISTINCT id_document', 'spip_documents_liens as oooo');
    50         $cond = "spip_documents.id_document NOT IN ($select)";
     50        $cond = "spip_documents.id_document NOT IN ($select) AND spip_documents.mode != 'vignette'";
    5151        $where[] = $cond;
    5252
Note: See TracChangeset for help on using the changeset viewer.