From 1b4dcefcb0bb30207478e88298989c050485b058 Mon Sep 17 00:00:00 2001 From: florian HENRY Date: Fri, 18 May 2018 08:52:13 +0200 Subject: [PATCH] fix hookname as uniq by card --- htdocs/projet/tasks.php | 2 +- htdocs/projet/tasks/comment.php | 2 +- htdocs/projet/tasks/time.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/htdocs/projet/tasks.php b/htdocs/projet/tasks.php index 69c62416e9b..17e89b7d21a 100644 --- a/htdocs/projet/tasks.php +++ b/htdocs/projet/tasks.php @@ -64,7 +64,7 @@ $socid=0; $result = restrictedArea($user, 'projet', $id, 'projet&project'); // Initialize technical object to manage hooks of page. Note that conf->hooks_modules contains array of hook context -$hookmanager->initHooks(array('projecttaskcard','globalcard')); +$hookmanager->initHooks(array('projecttaskscard','globalcard')); $progress=GETPOST('progress', 'int'); $label=GETPOST('label', 'alpha'); diff --git a/htdocs/projet/tasks/comment.php b/htdocs/projet/tasks/comment.php index cf6e29d5ef6..fff98bc3c5f 100644 --- a/htdocs/projet/tasks/comment.php +++ b/htdocs/projet/tasks/comment.php @@ -53,7 +53,7 @@ $socid=0; if (! $user->rights->projet->lire) accessforbidden(); // Initialize technical object to manage hooks of page. Note that conf->hooks_modules contains array of hook context -$hookmanager->initHooks(array('projecttaskcard','globalcard')); +$hookmanager->initHooks(array('projecttaskcommentcard','globalcard')); $object = new Task($db); $extrafields = new ExtraFields($db); diff --git a/htdocs/projet/tasks/time.php b/htdocs/projet/tasks/time.php index 86a2027b3b7..7e4122262f7 100644 --- a/htdocs/projet/tasks/time.php +++ b/htdocs/projet/tasks/time.php @@ -74,7 +74,7 @@ if (! $sortorder) $sortorder='DESC'; // Initialize technical object to manage hooks of page. Note that conf->hooks_modules contains array of hook context //$object = new TaskTime($db); -$hookmanager->initHooks(array('projecttaskcard','globalcard')); +$hookmanager->initHooks(array('projecttasktime','globalcard')); $object = new Task($db); $projectstatic = new Project($db);