From c0991e2a442858e7d427accca99517c5399d0c3f Mon Sep 17 00:00:00 2001 From: Eskiso Date: Wed, 28 Sep 2016 17:31:42 +0100 Subject: Added hooks for plugins --- app/Model/SubtaskModel.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'app') diff --git a/app/Model/SubtaskModel.php b/app/Model/SubtaskModel.php index 608ffce7..737a933d 100644 --- a/app/Model/SubtaskModel.php +++ b/app/Model/SubtaskModel.php @@ -255,6 +255,7 @@ class SubtaskModel extends Base { $this->helper->model->removeFields($values, array('another_subtask')); $this->helper->model->resetFields($values, array('time_estimated', 'time_spent')); + $this->hook->reference('model:subtask:modification:prepare', $values); } /** @@ -272,6 +273,7 @@ class SubtaskModel extends Base $values['time_estimated'] = isset($values['time_estimated']) ? $values['time_estimated'] : 0; $values['time_spent'] = isset($values['time_spent']) ? $values['time_spent'] : 0; $values['user_id'] = isset($values['user_id']) ? $values['user_id'] : 0; + $this->hook->reference('model:subtask:creation:prepare', $values); } /** -- cgit v1.2.3