diff --git a/www/lib/class.erpapi.php b/www/lib/class.erpapi.php index 272cf42c..7cd563ff 100644 --- a/www/lib/class.erpapi.php +++ b/www/lib/class.erpapi.php @@ -37438,7 +37438,7 @@ function Firmendaten($field,$projekt="") 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 datei AS d on ds.datei = d.id - WHERE ds.objekt LIKE 'Artikel' AND d.geloescht = 0 + WHERE ds.objekt LIKE 'Artikel' AND d.geloescht = 0 AND ds.parameter = '%d' AND (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