diff options
author | Frédéric Guillot <fred@kanboard.net> | 2014-05-26 12:27:33 -0400 |
---|---|---|
committer | Frédéric Guillot <fred@kanboard.net> | 2014-05-26 12:27:33 -0400 |
commit | 2cb6b77ac87c52e9655a1333d39d0263b4880ed5 (patch) | |
tree | 0539622e8cf589a1f71ffe8ddcbfcc0a4122579f /app/Model | |
parent | dbc4443bb18ab2f588b5f8e2f6dbec4332a46660 (diff) |
Improve events handling
Diffstat (limited to 'app/Model')
-rw-r--r-- | app/Model/Task.php | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/app/Model/Task.php b/app/Model/Task.php index 45c68aec..04500272 100644 --- a/app/Model/Task.php +++ b/app/Model/Task.php @@ -359,12 +359,10 @@ class Task extends Base // Trigger events if ($result) { - $events = array(); - - if (! in_array($this->event->getLastTriggeredEvent(), array(self::EVENT_CREATE_UPDATE))) { - $events[] = self::EVENT_CREATE_UPDATE; - $events[] = self::EVENT_UPDATE; - } + $events = array( + self::EVENT_CREATE_UPDATE, + self::EVENT_UPDATE, + ); if (isset($values['column_id']) && $original_task['column_id'] != $values['column_id']) { $events[] = self::EVENT_MOVE_COLUMN; |