* Add firstEnd field in table project and record end date when start a execution.
This commit is contained in:
@@ -125,6 +125,8 @@ class commonModel extends model
|
||||
->where('id')->eq($projectID)
|
||||
->exec();
|
||||
|
||||
$this->loadModel('project')->recordFirstEnd($projectID);
|
||||
|
||||
$actionType = $project->multiple ? 'syncproject' : 'syncmultipleproject';
|
||||
$this->loadModel('action')->create('project', $projectID, $actionType);
|
||||
}
|
||||
@@ -180,6 +182,7 @@ class commonModel extends model
|
||||
if($execution->status == 'wait')
|
||||
{
|
||||
$this->dao->update(TABLE_EXECUTION)->set('status')->eq('doing')->set('realBegan')->eq($today)->where('id')->eq($execution->id)->exec();
|
||||
$this->loadModel('project')->recordFirstEnd($execution->id);
|
||||
$this->loadModel('action')->create('execution', $execution->id, 'syncexecution');
|
||||
if($execution->parent)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user