Finis task #44486,44487,44488.
This commit is contained in:
@@ -1469,6 +1469,7 @@ class execution extends control
|
||||
}
|
||||
|
||||
$this->executeHooks($executionID);
|
||||
if($_POST['status'] == 'doing') $this->loadModel('common')->syncPPEStatus($executionID);
|
||||
return $this->send(array('result' => 'success', 'message' => $this->lang->saveSuccess, 'locate' => inlink('view', "executionID=$executionID")));
|
||||
}
|
||||
|
||||
@@ -1574,6 +1575,16 @@ class execution extends control
|
||||
|
||||
$actionID = $this->loadModel('action')->create($this->objectType, $executionID, 'Edited');
|
||||
$this->action->logHistory($actionID, $changes);
|
||||
|
||||
foreach($changes as $changeField)
|
||||
{
|
||||
if($changeField['field'] == 'status' && $changeField['old'] =='wait' && $changeField['new'] =='doing')
|
||||
{
|
||||
$syncExecution = $executionID;
|
||||
break;
|
||||
}
|
||||
}
|
||||
$this->loadModel('common')->syncPPEStatus($syncExecution);
|
||||
}
|
||||
}
|
||||
die(js::locate($this->session->executionList, 'parent'));
|
||||
@@ -1651,6 +1662,8 @@ class execution extends control
|
||||
$actionID = $this->action->create($this->objectType, $executionID, 'Started', $this->post->comment);
|
||||
$this->action->logHistory($actionID, $changes);
|
||||
}
|
||||
|
||||
$this->loadModel('common')->syncPPEStatus($executionID);
|
||||
$this->executeHooks($executionID);
|
||||
die(js::reload('parent.parent'));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user