From 13fdf790d6eb368b5db74ce764d232d93eb3735f Mon Sep 17 00:00:00 2001 From: Gregor Ljubic <50360097+ITResitve@users.noreply.github.com> Date: Sun, 1 Dec 2024 23:17:00 +0100 Subject: [PATCH] Update list.php (#32164) Co-authored-by: Laurent Destailleur --- htdocs/commande/list.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/commande/list.php b/htdocs/commande/list.php index c1960a0c5e9..3db787bbcc2 100644 --- a/htdocs/commande/list.php +++ b/htdocs/commande/list.php @@ -1050,8 +1050,8 @@ if ($search_fk_input_reason > 0) { if ($search_user > 0) { $sql .= " AND EXISTS ("; $sql .= " SELECT ec.fk_c_type_contact, ec.element_id, ec.fk_socpeople"; - $sql .= " FROM llx_element_contact as ec"; - $sql .= " INNER JOIN llx_c_type_contact as tc"; + $sql .= " FROM ".MAIN_DB_PREFIX."element_contact as ec"; + $sql .= " INNER JOIN ".MAIN_DB_PREFIX."c_type_contact as tc"; $sql .= " ON ec.fk_c_type_contact = tc.rowid AND tc.element='commande' AND tc.source='internal'"; $sql .= " WHERE ec.element_id = c.rowid AND ec.fk_socpeople = ".((int) $search_user).")"; }