* Finish task #79457.

This commit is contained in:
孙广明
2022-12-14 09:45:36 +08:00
parent 6f584ec3c1
commit 9648b48513
+13 -5
View File
@@ -4195,14 +4195,22 @@ class execution extends control
include $this->app->getModulePath('', 'execution') . 'lang/' . $this->app->getClientLang() . '.php';
}
$executionProductList = $this->loadModel('product')->getProducts($executionID);
$multiBranchProduct = false;
foreach($executionProductList as $executionProduct)
if($productID)
{
if($executionProduct->type != 'normal')
$product = $this->loadModel('product')->getByID($productID);
if($product->type != 'normal') $multiBranchProduct = true;
}
else
{
$executionProductList = $this->loadModel('product')->getProducts($executionID);
foreach($executionProductList as $executionProduct)
{
$multiBranchProduct = true;
break;
if($executionProduct->type != 'normal')
{
$multiBranchProduct = true;
break;
}
}
}
$importPlanStoryTips = $multiBranchProduct ? $this->lang->execution->haveBranchDraft : $this->lang->execution->haveDraft;