From 2ed9df4a913d929135cbd9a2c1e839d577e519b2 Mon Sep 17 00:00:00 2001 From: Peter Rotich <peter@osticket.com> Date: Wed, 8 Jul 2015 18:57:42 +0000 Subject: [PATCH] Set closed date --- include/class.task.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/include/class.task.php b/include/class.task.php index 676cb9d5e..b5c086a19 100644 --- a/include/class.task.php +++ b/include/class.task.php @@ -174,11 +174,11 @@ class TaskModel extends VerySimpleModel { return !$this->isOpen(); } - function close() { + protected function close() { return $this->clearFlag(self::ISOPEN); } - function reopen() { + protected function reopen() { return $this->setFlag(self::ISOPEN); } @@ -443,11 +443,14 @@ class Task extends TaskModel implements RestrictedAccess, Threadable { return false; $this->reopen(); + $this->closed = null; break; case 'closed': if ($this->isClosed()) return false; + $this->close(); + $this->closed = SqlFunction::NOW(); break; default: return false; -- GitLab