* Finish task #42089.

This commit is contained in:
liumengyi
2023-02-23 06:04:12 +00:00
parent 389f7a9801
commit a876a53bf2
5 changed files with 7 additions and 0 deletions
+3
View File
@@ -3178,6 +3178,9 @@ class execution extends control
$this->loadModel('product');
$execution = $this->execution->getById($executionID);
$project = $this->loadModel('project')->getByID($execution->project);
if(!$project->hasProduct) return print(js::error($this->lang->project->cannotManageProducts) . js::locate('back'));
if($project->model == 'waterfall' or $project->model == 'waterfallplus') return print(js::error(sprintf($this->lang->execution->cannotManageProducts, zget($this->lang->project->modelList, $project->model))) . js::locate('back'));
if(!empty($_POST))
{