Browse Source

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

issue_4494
bruno@eliaz.fr 3 years ago
parent
commit
f6941f3434
  1. 2
      action/supprimer_tous_orphelins.php
  2. 2
      paquet.xml

2
action/supprimer_tous_orphelins.php

@ -47,7 +47,7 @@ function action_supprimer_tous_orphelins() {
//on isole les orphelins
$select = sql_get_select('DISTINCT id_document', 'spip_documents_liens as oooo');
$cond = "spip_documents.id_document NOT IN ($select)";
$cond = "spip_documents.id_document NOT IN ($select) AND spip_documents.mode != 'vignette'";
$where[] = $cond;
$ids_doc_orphelins = sql_select('id_document', 'spip_documents', $where);

2
paquet.xml

@ -1,7 +1,7 @@
<paquet
prefix="medias"
categorie="multimedia"
version="2.22.0"
version="2.22.1"
etat="stable"
compatibilite="[3.3.0-dev;3.3.*]"
logo="prive/themes/spip/images/portfolio-32.png"

Loading…
Cancel
Save