Improve automatic actions (move task to another position same columns)

This commit is contained in:
Frédéric Guillot
2014-05-26 12:54:06 -04:00
parent 2cb6b77ac8
commit 93783274a4
3 changed files with 38 additions and 5 deletions

View File

@@ -127,6 +127,17 @@ class Event
return in_array($eventName, $this->events);
}
/**
* Flush the list of triggered events
*
* @access public
*/
public function clearTriggeredEvents()
{
$this->events = array();
$this->lastEvent = '';
}
/**
* Check if a listener bind to an event
*

View File

@@ -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,