Skip to content
Snippets Groups Projects
Commit 2ed9df4a authored by Peter Rotich's avatar Peter Rotich
Browse files

Set closed date

parent 05548868
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment