2
0
forked from Wavyzz/dolibarr

forgotten hook on list

This commit is contained in:
Charlène Benke
2022-12-08 16:33:04 +01:00
committed by GitHub
parent 5f3e231d13
commit 06c0a50ff5

View File

@@ -451,6 +451,10 @@ if ($search_project_user > 0) {
if ($search_project_contact > 0) {
$sql .= ", ".MAIN_DB_PREFIX."element_contact as ecp_contact";
}
$reshook = $hookmanager->executeHooks('printFieldListFrom', $parameters, $object); // Note that $action and $object may have been modified by hook
$sql .= $hookmanager->resPrint;
$sql .= " WHERE p.entity IN (".getEntity('project').')';
if (empty($user->rights->projet->all->lire)) {
$sql .= " AND p.rowid IN (".$db->sanitize($projectsListId).")"; // public and assigned to, or restricted to company for external users