Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
This commit is contained in:
Gregor Ljubic 2024-12-02 00:49:13 +01:00 committed by GitHub
parent 2ad3001ccb
commit ea52f679c7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -875,8 +875,8 @@ if (!empty($search_fac_rec_source_title)) {
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='facture' AND tc.source='internal'";
$sql .= " WHERE ec.element_id = f.rowid AND ec.fk_socpeople = ".((int) $search_user).")";
}