mirror of
https://github.com/OpenXE-org/OpenXE.git
synced 2024-12-25 06:00:28 +01:00
FIX Article: Filter deleted files from default picture selection
This commit is contained in:
parent
b7ade7b4b2
commit
1775d0b47f
@ -37436,7 +37436,8 @@ function Firmendaten($field,$projekt="")
|
|||||||
SELECT dv.datei AS datei
|
SELECT dv.datei AS datei
|
||||||
FROM datei_stichwoerter AS ds
|
FROM datei_stichwoerter AS ds
|
||||||
JOIN (SELECT datei, MAX(id) AS id FROM datei_version GROUP BY datei) AS dv ON dv.datei = ds.datei
|
JOIN (SELECT datei, MAX(id) AS id FROM datei_version GROUP BY datei) AS dv ON dv.datei = ds.datei
|
||||||
WHERE ds.objekt LIKE 'Artikel' AND
|
JOIN datei AS d on ds.datei = d.id
|
||||||
|
WHERE ds.objekt LIKE 'Artikel' AND d.geloescht = 0
|
||||||
ds.parameter = '%d' AND
|
ds.parameter = '%d' AND
|
||||||
(ds.subjekt LIKE 'Shopbild' OR ds.subjekt LIKE 'Druckbild' OR ds.subjekt LIKE 'Bild')
|
(ds.subjekt LIKE 'Shopbild' OR ds.subjekt LIKE 'Druckbild' OR ds.subjekt LIKE 'Bild')
|
||||||
ORDER BY ds.subjekt LIKE 'Shopbild' DESC, ds.subjekt LIKE 'Druckbild' DESC, ds.sort
|
ORDER BY ds.subjekt LIKE 'Shopbild' DESC, ds.subjekt LIKE 'Druckbild' DESC, ds.sort
|
||||||
|
Loading…
Reference in New Issue
Block a user