* finish task #43339.

This commit is contained in:
王怡栋
2021-10-21 16:43:37 +08:00
parent 5920491ee0
commit 96bf22be3a
3 changed files with 37 additions and 3 deletions
+1
View File
@@ -312,6 +312,7 @@ class todo extends control
{
$todo = $this->todo->getById($todoID);
if($todo->status == 'done' or $todo->status == 'closed') $this->todo->activate($todoID);
if(defined('RUN_MODE') && RUN_MODE == 'api') return $this->send(array('status' => 'success'));
if(isonlybody()) die(js::reload('parent.parent'));
die(js::reload('parent'));
}