* merge from 15.0.beta3.

This commit is contained in:
wangyidong
2021-06-06 09:05:34 +08:00
parent 968c88329a
commit b6676572f0
29 changed files with 1288 additions and 56 deletions
+8 -7
View File
@@ -297,16 +297,17 @@ class executionModel extends model
if(dao::isError()) return false;
/* Determine whether to add a sprint or a stage according to the model of the execution. */
$project = $this->loadModel('project')->getByID($_POST['project']);
$type = zget($this->config->execution->modelList, $project->model, 'sprint');
$this->config->execution->create->requiredFields .= ',project';
}
/* If the execution model is a stage, determine whether the product is linked. */
if($type == 'stage' and empty($this->post->products[0]))
{
dao::$errors['message'][] = $this->lang->execution->noLinkProduct;
return false;
}
/* If the execution model is a stage, determine whether the product is linked. */
if($type == 'stage' and empty($this->post->products[0]))
{
dao::$errors['message'][] = $this->lang->execution->noLinkProduct;
return false;
$this->config->execution->create->requiredFields .= ',project';
}
/* Get the data from the post. */