From bca881ebecae565804e612752f9d86e09207a5ac Mon Sep 17 00:00:00 2001 From: tanghucheng Date: Tue, 7 Dec 2021 09:33:52 +0800 Subject: [PATCH] * Fix bug #17126. --- module/common/model.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/module/common/model.php b/module/common/model.php index 1b4960076a..ae7365a2c4 100644 --- a/module/common/model.php +++ b/module/common/model.php @@ -145,9 +145,10 @@ class commonModel extends model ->where('t2.id')->eq($taskID) ->fetch(); + $today = helper::today(); if($execution->status == 'wait') { - $this->dao->update(TABLE_EXECUTION)->set('status')->eq('doing')->where('id')->eq($execution->id)->exec(); + $this->dao->update(TABLE_EXECUTION)->set('status')->eq('doing')->set('realBegan')->eq($today)->where('id')->eq($execution->id)->exec(); $this->loadModel('action')->create('execution', $execution->id, 'syncexecution'); } return $execution; @@ -849,7 +850,7 @@ class commonModel extends model $method = $linkPart[2]; /* Skip some pages that do not require permissions.*/ - if($currentModule == 'report' and $method == 'annualData') continue; + if($currentModule == 'report' and $method == 'annualData') continue; if($currentModule == 'my' and $currentMethod == 'team') continue; if(common::hasPriv($currentModule, $method))