summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-rw-r--r--app/Core/Event.php11
-rw-r--r--app/Model/Task.php2
2 files changed, 13 insertions, 0 deletions
diff --git a/app/Core/Event.php b/app/Core/Event.php
index ac81bf87..0e6df5e8 100644
--- a/app/Core/Event.php
+++ b/app/Core/Event.php
@@ -128,6 +128,17 @@ class Event
}
/**
+ * Flush the list of triggered events
+ *
+ * @access public
+ */
+ public function clearTriggeredEvents()
+ {
+ $this->events = array();
+ $this->lastEvent = '';
+ }
+
+ /**
* Check if a listener bind to an event
*
* @access public
diff --git a/app/Model/Task.php b/app/Model/Task.php
index 04500272..70f1404c 100644
--- a/app/Model/Task.php
+++ b/app/Model/Task.php
@@ -456,6 +456,8 @@ class Task extends Base
*/
public function move($task_id, $column_id, $position)
{
+ $this->event->clearTriggeredEvents();
+
return $this->update(array(
'id' => $task_id,
'column_id' => $column_id,