diff options
author | Frédéric Guillot <fred@kanboard.net> | 2014-09-18 22:08:16 +0200 |
---|---|---|
committer | Frédéric Guillot <fred@kanboard.net> | 2014-09-18 22:08:16 +0200 |
commit | 31d3f8bb5783f5311bb3b7a86c3a6f5beb594580 (patch) | |
tree | 67beb8093c4fca28f8bea6ab72668a4ea34228cc /app/Model/Project.php | |
parent | 4b61aad21847bc7b5d5110a80ed9ba35cbed0709 (diff) |
Fix bug: update of the last_modified field for projects
Diffstat (limited to 'app/Model/Project.php')
-rw-r--r-- | app/Model/Project.php | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/app/Model/Project.php b/app/Model/Project.php index f8df1ae1..3edd82c5 100644 --- a/app/Model/Project.php +++ b/app/Model/Project.php @@ -489,6 +489,7 @@ class Project extends Base $this->db->startTransaction(); $values['token'] = ''; + $values['last_modified'] = time(); if (! $this->db->table(self::TABLE)->save($values)) { $this->db->cancelTransaction(); @@ -539,7 +540,7 @@ class Project extends Base */ public function updateModificationDate($project_id) { - return $this->db->table(self::TABLE)->eq('id', $project_id)->save(array( + return $this->db->table(self::TABLE)->eq('id', $project_id)->update(array( 'last_modified' => time() )); } @@ -730,10 +731,12 @@ class Project extends Base public function attachEvents() { $events = array( - Task::EVENT_UPDATE, - Task::EVENT_CREATE, + Task::EVENT_CREATE_UPDATE, Task::EVENT_CLOSE, Task::EVENT_OPEN, + Task::EVENT_MOVE_COLUMN, + Task::EVENT_MOVE_POSITION, + Task::EVENT_ASSIGNEE_CHANGE, ); $listener = new ProjectModificationDate($this); |