* adjust for edit effort.

This commit is contained in:
wangyidong
2022-09-13 13:37:13 +08:00
parent 0142653d2b
commit 09694f3751
2 changed files with 9 additions and 15 deletions
+6 -12
View File
@@ -1038,12 +1038,9 @@ class task extends control
return print(js::error(dao::getError()));
}
if($this->post->comment != '' or !empty($changes))
{
$act = $this->post->left == 0 ? 'Finished' : 'Started';
$actionID = $this->action->create('task', $taskID, $act, $this->post->comment);
$this->action->logHistory($actionID, $changes);
}
$act = $this->post->left == 0 ? 'Finished' : 'Started';
$actionID = $this->action->create('task', $taskID, $act, $this->post->comment);
if(!empty($changes)) $this->action->logHistory($actionID, $changes);
$this->executeHooks($taskID);
$this->loadModel('common')->syncPPEStatus($taskID);
@@ -1447,12 +1444,9 @@ class task extends control
$changes = $this->task->start($taskID);
if(dao::isError()) return print(js::error(dao::getError()));
if($this->post->comment != '' or !empty($changes))
{
$act = $this->post->left == 0 ? 'Finished' : 'Restarted';
$actionID = $this->action->create('task', $taskID, $act, $this->post->comment);
$this->action->logHistory($actionID, $changes);
}
$act = $this->post->left == 0 ? 'Finished' : 'Restarted';
$actionID = $this->action->create('task', $taskID, $act, $this->post->comment);
if(!empty($changes)) $this->action->logHistory($actionID, $changes);
$this->executeHooks($taskID);