* Fix bug#42164.

This commit is contained in:
xieqiyu
2023-12-21 20:32:01 +08:00
parent dfb2afe22e
commit 98faf995a0
2 changed files with 2 additions and 3 deletions
+1 -1
View File
@@ -73,7 +73,7 @@ window.renderRowData = function($row, index, story)
items.push({text: branches[branch], value: branch});
}
options.items = items;
options.onChange = 'loadBranches(' + story.product + ', this)';
options.onChange = function(){loadBranches(story.product, this)};
options.defaultValue = story.branch;
$picker.render(options);
+1 -2
View File
@@ -884,9 +884,8 @@ class storyZen extends story
}
$modulePairs = $this->tree->getOptionMenu($productID, 'story', 0, $branches);
$moduleList = $branchProduct ? $modulePairs : array(0 => $modulePairs);
$modules = array($productID => $moduleList);
$modules = array($productID => $modulePairs);
$branchTagOption = array($productID => $branchTagOption);
$products = array($productID => $product);
$plans = array($productID => $this->productplan->getBranchPlanPairs($productID, $branches, 'unexpired', true));