This commit is contained in:
王怡栋
2022-11-16 13:04:58 +08:00
2 changed files with 5 additions and 3 deletions
+2 -2
View File
@@ -1733,7 +1733,7 @@ class execution extends control
$this->view->linkedBranches = $linkedBranches;
}
if(!empty($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(!empty($project->hasProduct) and !empty($_POST['plans']))
if(empty($project->hasProduct) and !empty($_POST['plans']))
{
$plansItem = array();
foreach($_POST['plans'] as $planItem)
+3 -1
View File
@@ -146,7 +146,9 @@ function setParentProgram(parentProgram)
selectedParent = parentProgram != 0 ? data.selectedProgramPath[1] : 0;
lastSelectedParent = lastSelectedID != 0 ? data.objectPath[1] : 0;
if(selectedParent != lastSelectedParent)
var hasProduct = $('[name=hasProduct]:checked').val();
if((selectedParent != lastSelectedParent) && hasProduct == 1)
{
$('#budget').val('');