summaryrefslogtreecommitdiff
path: root/app/Model/SubtaskModel.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2016-10-05 08:46:39 -0400
committerFrederic Guillot <fred@kanboard.net>2016-10-05 08:46:39 -0400
commit9159be81ec48dafa4ce0302418e5fcd2a95d734c (patch)
tree91e6fc577491d0ba73d8c24dd09c6e97a350064c /app/Model/SubtaskModel.php
parent1c0fad6e129aa390ae0926718c2c1d041959d2a3 (diff)
parentb18e3d6a5c25cfbfc87ee4d62231ff8a2866da52 (diff)
Merge pull-request #2707
Diffstat (limited to 'app/Model/SubtaskModel.php')
-rw-r--r--app/Model/SubtaskModel.php2
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);
}
/**