diff options
Diffstat (limited to 'core/models')
-rw-r--r-- | core/models/task.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/core/models/task.php b/core/models/task.php index 697ab7bc..b88e34b7 100644 --- a/core/models/task.php +++ b/core/models/task.php @@ -33,4 +33,11 @@ class Task_Model extends ORM { $context[$key] = $value; $this->context = serialize($context); } + + public function save() { + if (!empty($this->changed)) { + $this->updated = time(); + } + return parent::save(); + } }
\ No newline at end of file |