Fix: differentiate "card", "contact" and "agenda

This commit is contained in:
Regis Houssin 2018-03-27 18:57:50 +02:00
parent e28307ede4
commit dec0164ff9
2 changed files with 2 additions and 2 deletions

View File

@ -101,7 +101,7 @@ if (! $sortfield) $sortfield='a.datep, a.id';
if (! $sortorder) $sortorder='DESC';
// Initialize technical object to manage hooks of page. Note that conf->hooks_modules contains array of hook context
$hookmanager->initHooks(array('contactcard','globalcard'));
$hookmanager->initHooks(array('contactagenda','globalcard'));
/*

View File

@ -66,7 +66,7 @@ $extrafields = new ExtraFields($db);
$extralabels=$extrafields->fetch_name_optionals_label($object->table_element);
// Initialize technical object to manage hooks of page. Note that conf->hooks_modules contains array of hook context
$hookmanager->initHooks(array('thirdpartycard','globalcard'));
$hookmanager->initHooks(array('thirdpartycontact','globalcard'));
if ($action == 'view' && $object->fetch($socid)<=0)
{