Merge pull request #8463 from hregis/develop_dict

Fix: differentiate context "card", "contact" and "agenda
This commit is contained in:
Laurent Destailleur 2018-03-29 13:41:27 +02:00 committed by GitHub
commit b12752c9a9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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)
{