From 9eeded33f68872515954a2fc177fcb47a9273ae9 Mon Sep 17 00:00:00 2001 From: Frédéric Guillot Date: Fri, 15 Aug 2014 17:23:41 -0700 Subject: Add email notifications --- app/Model/Action.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'app/Model/Action.php') diff --git a/app/Model/Action.php b/app/Model/Action.php index 25e72f58..effe8707 100644 --- a/app/Model/Action.php +++ b/app/Model/Action.php @@ -224,25 +224,25 @@ class Action extends Base switch ($name) { case 'TaskClose': $className = '\Action\TaskClose'; - return new $className($project_id, new Task($this->db, $this->event)); + return new $className($project_id, new Task($this->registry)); case 'TaskAssignCurrentUser': $className = '\Action\TaskAssignCurrentUser'; - return new $className($project_id, new Task($this->db, $this->event), new Acl($this->db, $this->event)); + return new $className($project_id, new Task($this->registry), new Acl($this->registry)); case 'TaskAssignSpecificUser': $className = '\Action\TaskAssignSpecificUser'; - return new $className($project_id, new Task($this->db, $this->event)); + return new $className($project_id, new Task($this->registry)); case 'TaskDuplicateAnotherProject': $className = '\Action\TaskDuplicateAnotherProject'; - return new $className($project_id, new Task($this->db, $this->event)); + return new $className($project_id, new Task($this->registry)); case 'TaskAssignColorUser': $className = '\Action\TaskAssignColorUser'; - return new $className($project_id, new Task($this->db, $this->event)); + return new $className($project_id, new Task($this->registry)); case 'TaskAssignColorCategory': $className = '\Action\TaskAssignColorCategory'; - return new $className($project_id, new Task($this->db, $this->event)); + return new $className($project_id, new Task($this->registry)); case 'TaskAssignCategoryColor': $className = '\Action\TaskAssignCategoryColor'; - return new $className($project_id, new Task($this->db, $this->event)); + return new $className($project_id, new Task($this->registry)); default: throw new LogicException('Action not found: '.$name); } -- cgit v1.2.3