diff options
author | Eskiso <eSkiSo@users.noreply.github.com> | 2016-09-28 17:31:42 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-09-28 17:31:42 +0100 |
commit | c0991e2a442858e7d427accca99517c5399d0c3f (patch) | |
tree | efb6477173c2e8b2696680df965167bd4e3ca837 /app | |
parent | a5aa42369491ca5d6d181ae072d5a313845a274e (diff) |
Added hooks for plugins
Diffstat (limited to 'app')
-rw-r--r-- | app/Model/SubtaskModel.php | 2 |
1 files changed, 2 insertions, 0 deletions
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); } /** |