fix code error

This commit is contained in:
lanzongjun
2022-11-15 14:29:27 +08:00
parent 4849895b69
commit c155808a69
+2 -2
View File
@@ -1733,7 +1733,7 @@ class execution extends control
$this->view->linkedBranches = $linkedBranches;
}
if(!$project->hasProduct)
if(!empty($project->hasProduct))
{
$shadowProduct = $this->loadModel('product')->getShadowProductByProject($project->id);
$productPlan = $this->loadModel('productplan')->getPairs($shadowProduct->id, '0,0', 'noclosed,unexpired', true);
@@ -1744,7 +1744,7 @@ class execution extends control
if(isset($_POST['attribute']) and in_array($_POST['attribute'], array('request', 'design', 'review'))) unset($_POST['plans']);
/* No product execution link plans. */
if(!$project->hasProduct and !empty($_POST['plans']))
if(!empty($project->hasProduct) and !empty($_POST['plans']))
{
$plansItem = array();
foreach($_POST['plans'] as $planItem)