Changeset 115450 in spip-zone


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

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

Location:
_core_/plugins/medias
Files:
2 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
  • _core_/plugins/medias/paquet.xml

    r114330 r115450  
    22        prefix="medias"
    33        categorie="multimedia"
    4         version="2.22.0"
     4        version="2.22.1"
    55        etat="stable"
    66        compatibilite="[3.3.0-dev;3.3.*]"
Note: See TracChangeset for help on using the changeset viewer.