Add missing call of hook doActions in projet/contact.php
This commit is contained in:
parent
e9c43718ba
commit
af61006b8b
@ -69,6 +69,13 @@ $hookmanager->initHooks(array('projectcontactcard', 'globalcard'));
|
|||||||
* Actions
|
* Actions
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
$parameters = array('id'=>$id);
|
||||||
|
$reshook = $hookmanager->executeHooks('doActions', $parameters, $object, $action);
|
||||||
|
if ($reshook < 0) {
|
||||||
|
setEventMessages($hookmanager->error, $hookmanager->errors, 'errors');
|
||||||
|
}
|
||||||
|
|
||||||
|
if (empty($reshook)) {
|
||||||
// Test if we can add contact to the tasks at the same times, if not or not required, make a redirect
|
// Test if we can add contact to the tasks at the same times, if not or not required, make a redirect
|
||||||
$formconfirmtoaddtasks = '';
|
$formconfirmtoaddtasks = '';
|
||||||
if ($action == 'addcontact') {
|
if ($action == 'addcontact') {
|
||||||
@ -233,7 +240,7 @@ if (($action == 'deleteline' || $action == 'deletecontact') && $user->rights->pr
|
|||||||
dol_print_error($db);
|
dol_print_error($db);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user