From a46757778f69e4b54f668f8542c06702eb1ef309 Mon Sep 17 00:00:00 2001
From: Frederic Guillot <fred@kanboard.net>
Date: Tue, 9 Feb 2016 21:40:57 -0500
Subject: Rename hooks

---
 app/Controller/Gantt.php            | 2 +-
 app/Controller/Taskcreation.php     | 2 +-
 app/Controller/Taskmodification.php | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

(limited to 'app/Controller')

diff --git a/app/Controller/Gantt.php b/app/Controller/Gantt.php
index c8c8a8a3..5dbd1243 100644
--- a/app/Controller/Gantt.php
+++ b/app/Controller/Gantt.php
@@ -108,7 +108,7 @@ class Gantt extends Base
         );
 
         $values = $this->hook->merge('controller:task:form:default', $values, array('default_values' => $values));
-        $values = $this->hook->merge('controller:task:form:gantt', $values, array('default_values' => $values));
+        $values = $this->hook->merge('controller:gantt:task:form:default', $values, array('default_values' => $values));
 
         $this->response->html($this->template->render('gantt/task_creation', array(
             'project' => $project,
diff --git a/app/Controller/Taskcreation.php b/app/Controller/Taskcreation.php
index 72f756df..f1ac7272 100644
--- a/app/Controller/Taskcreation.php
+++ b/app/Controller/Taskcreation.php
@@ -29,7 +29,7 @@ class Taskcreation extends Base
             );
 
             $values = $this->hook->merge('controller:task:form:default', $values, array('default_values' => $values));
-            $values = $this->hook->merge('controller:task:form:task-creation', $values, array('default_values' => $values));
+            $values = $this->hook->merge('controller:task-creation:form:default', $values, array('default_values' => $values));
         }
 
         $this->response->html($this->template->render('task_creation/form', array(
diff --git a/app/Controller/Taskmodification.php b/app/Controller/Taskmodification.php
index e3c59d44..306d34c0 100644
--- a/app/Controller/Taskmodification.php
+++ b/app/Controller/Taskmodification.php
@@ -80,7 +80,7 @@ class Taskmodification extends Base
         if (empty($values)) {
             $values = $task;
             $values = $this->hook->merge('controller:task:form:default', $values, array('default_values' => $values));
-            $values = $this->hook->merge('controller:task:form:task-modification', $values, array('default_values' => $values));
+            $values = $this->hook->merge('controller:task-modification:form:default', $values, array('default_values' => $values));
         }
 
         $values = $this->dateParser->format($values, array('date_due'), $this->config->get('application_date_format', 'm/d/Y'));
-- 
cgit v1.2.3