From f2589cc0e9b0beeadc7bfba2a62d9b2334185469 Mon Sep 17 00:00:00 2001 From: Andreas Palm Date: Tue, 5 Mar 2024 23:18:07 +0100 Subject: [PATCH] use "sort" field when choosing default image --- www/lib/class.erpapi.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/lib/class.erpapi.php b/www/lib/class.erpapi.php index 21a5ab90..bddf94e5 100644 --- a/www/lib/class.erpapi.php +++ b/www/lib/class.erpapi.php @@ -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) );