From 10e9d3a6a84e6c4487ee4add93ef0760ed98dea8 Mon Sep 17 00:00:00 2001 From: hufangzhou Date: Tue, 21 Feb 2023 07:14:49 +0000 Subject: [PATCH] * Fix bug for create execution. --- module/execution/js/common.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/module/execution/js/common.js b/module/execution/js/common.js index 37b32040ba..8dc5f37673 100644 --- a/module/execution/js/common.js +++ b/module/execution/js/common.js @@ -177,9 +177,6 @@ function loadBranches(product) disableSelectedProduct(); } - var branch = $('#branch' + index); - loadPlans(product, branch); - if(typeof isStage != 'undefined' && isStage == true) { $tableRow.find("select[name^='branch'] option").attr('selected', 'selected'); @@ -187,6 +184,10 @@ function loadBranches(product) $tableRow.find("div[id^='branch']").addClass('chosen-disabled'); } }); + + var branch = $('#branch' + index); + loadPlans(product, branch); + } /**