FIX #15851
This commit is contained in:
parent
c58451dbb6
commit
f8fe7b5a0e
@ -345,7 +345,7 @@ if ($catid > 0) $sql .= " AND cu.fk_categorie = ".((int) $catid);
|
|||||||
if ($catid == -2) $sql .= " AND cu.fk_categorie IS NULL";
|
if ($catid == -2) $sql .= " AND cu.fk_categorie IS NULL";
|
||||||
if ($search_categ > 0) $sql .= " AND cu.fk_categorie = ".$db->escape($search_categ);
|
if ($search_categ > 0) $sql .= " AND cu.fk_categorie = ".$db->escape($search_categ);
|
||||||
if ($search_categ == -2) $sql .= " AND cu.fk_categorie IS NULL";
|
if ($search_categ == -2) $sql .= " AND cu.fk_categorie IS NULL";
|
||||||
if ($mode == 'employee' && empty($user->rights->salaries->readall)) $sql .= " AND s.fk_user IN (".join(',', $childids).")";
|
if ($mode == 'employee' && empty($user->rights->salaries->readall)) $sql .= " AND u.fk_user IN (".join(',', $childids).")";
|
||||||
// Add where from extra fields
|
// Add where from extra fields
|
||||||
include DOL_DOCUMENT_ROOT.'/core/tpl/extrafields_list_search_sql.tpl.php';
|
include DOL_DOCUMENT_ROOT.'/core/tpl/extrafields_list_search_sql.tpl.php';
|
||||||
// Add where from hooks
|
// Add where from hooks
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user