Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
This commit is contained in:
parent
2ad3001ccb
commit
ea52f679c7
1 changed files with 2 additions and 2 deletions
|
|
@ -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).")";
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue