* fix bug for loadModel.

This commit is contained in:
wangyidong
2021-08-02 16:59:14 +08:00
parent 46b576255c
commit 7b0a8a5bb0
2 changed files with 25 additions and 24 deletions
+1 -1
View File
@@ -486,7 +486,7 @@ class executionModel extends model
if(isset($this->config->maxVersion))
{
$execution->planDuration = $this->loadModel('programplan')->getDuration($execution->begin, $execution->end);
if(!empty($execution->realBegan) and !empty($execution->realEnd)) $execution->realDuration = $this->loadModel('programplan')->getDuration($execution->realBegan, $execution->realEnd);
if(!empty($execution->realBegan) and !empty($execution->realEnd)) $execution->realDuration = $this->programplan->getDuration($execution->realBegan, $execution->realEnd);
}
/* Redefines the language entries for the fields in the project table. */