FIX Article: Filter deleted files from thumbnail selection

This commit is contained in:
Andreas Palm 2024-08-26 21:58:28 +02:00
parent 19ac3415e3
commit b7ade7b4b2

View File

@ -8432,7 +8432,7 @@ padding: 10px;\">
FROM `datei_stichwoerter` AS `ds` FROM `datei_stichwoerter` AS `ds`
INNER JOIN `datei_version` AS `dv` ON dv.datei = ds.datei INNER JOIN `datei_version` AS `dv` ON dv.datei = ds.datei
INNER JOIN `datei` AS `d` ON dv.datei = d.id AND IFNULL(d.geloescht, 0) = 0 INNER JOIN `datei` AS `d` ON dv.datei = d.id AND IFNULL(d.geloescht, 0) = 0
WHERE ds.objekt LIKE 'artikel' AND ds.parameter = '%d' WHERE ds.objekt LIKE 'artikel' AND ds.parameter = '%d' AND d.geloescht = 0
AND AND
( (
ds.subjekt like 'Shopbild' ds.subjekt like 'Shopbild'