Update list.php (#32164)

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
This commit is contained in:
Gregor Ljubic 2024-12-01 23:17:00 +01:00 committed by GitHub
parent 5565b153b2
commit 13fdf790d6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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).")";
}