Merge pull request #126 from exciler/Fix_ArtikelStandardbild

use "sort" field when choosing default image
This commit is contained in:
OpenXE-ERP 2024-03-06 20:41:14 +01:00 committed by GitHub
commit d0b414b9f6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -37563,7 +37563,7 @@ function Firmendaten($field,$projekt="")
WHERE ds.objekt LIKE 'Artikel' 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
ORDER BY ds.subjekt LIKE 'Shopbild' DESC, ds.subjekt LIKE 'Druckbild' DESC, ds.sort
LIMIT 1",
$artikel)
);