Skip to content

Commit

Permalink
Merge pull request #8463 from hregis/develop_dict
Browse files Browse the repository at this point in the history
Fix: differentiate context "card", "contact" and "agenda
  • Loading branch information
eldy committed Mar 29, 2018
2 parents 8881dc4 + dec0164 commit b12752c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion htdocs/contact/agenda.php
Expand Up @@ -101,7 +101,7 @@
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'));


/*
Expand Down
2 changes: 1 addition & 1 deletion htdocs/societe/contact.php
Expand Up @@ -66,7 +66,7 @@
$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)
{
Expand Down

0 comments on commit b12752c

Please sign in to comment.