NEW add selectContactListWhere hook
This commit is contained in:
parent
dbd0dd7e97
commit
a73b92c871
@ -1684,6 +1684,10 @@ class Form
|
|||||||
if (!empty($conf->global->CONTACT_HIDE_INACTIVE_IN_COMBOBOX)) {
|
if (!empty($conf->global->CONTACT_HIDE_INACTIVE_IN_COMBOBOX)) {
|
||||||
$sql .= " AND sp.statut <> 0";
|
$sql .= " AND sp.statut <> 0";
|
||||||
}
|
}
|
||||||
|
// Add where from hooks
|
||||||
|
$parameters = array();
|
||||||
|
$reshook = $hookmanager->executeHooks('selectContactListWhere', $parameters); // Note that $action and $object may have been modified by hook
|
||||||
|
$sql .= $hookmanager->resPrint;
|
||||||
$sql .= " ORDER BY sp.lastname ASC";
|
$sql .= " ORDER BY sp.lastname ASC";
|
||||||
|
|
||||||
dol_syslog(get_class($this)."::selectcontacts", LOG_DEBUG);
|
dol_syslog(get_class($this)."::selectcontacts", LOG_DEBUG);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user