* Refactor.
This commit is contained in:
@@ -533,7 +533,7 @@ class executionModel extends model
|
||||
$oldExecution = $this->dao->findById($executionID)->from(TABLE_EXECUTION)->fetch();
|
||||
|
||||
/* Judgment of required items. */
|
||||
if($oldExecution->type != 'stage' and $this->post->code == '' and (isset($this->config->setCode) and $this->config->setCode == 1))
|
||||
if($oldExecution->type != 'stage' and $this->post->code == '' and isset($this->config->setCode) and $this->config->setCode == 1)
|
||||
{
|
||||
dao::$errors['code'] = sprintf($this->lang->error->notempty, $this->lang->execution->code);
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user