diff options
author | Frédéric Guillot <fred@kanboard.net> | 2014-09-28 14:26:40 -0400 |
---|---|---|
committer | Frédéric Guillot <fred@kanboard.net> | 2014-09-28 14:26:40 -0400 |
commit | 03fa01ac7b036820ee232d893ec63241918c6012 (patch) | |
tree | 295e82e6552ffb044554a11afa95318a4e180f87 /app/Model/Task.php | |
parent | 0c8de6a3f58cde2696ac276b3456f3577d312e2b (diff) |
Improve automatic actions (check for compatible events/actions/parameters)
Diffstat (limited to 'app/Model/Task.php')
-rw-r--r-- | app/Model/Task.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/app/Model/Task.php b/app/Model/Task.php index 8708f128..3e19555f 100644 --- a/app/Model/Task.php +++ b/app/Model/Task.php @@ -690,6 +690,9 @@ class Task extends Base $values['position'] = $this->countByColumnId($project_id, $values['column_id']) + 1; $values['project_id'] = $project_id; + // The task will be open (close event binding) + $values['is_active'] = 1; + if ($this->db->table(self::TABLE)->eq('id', $task['id'])->update($values)) { return $task['id']; } |