From 98faf995a0b40fdac03f41fb54eb89ed482e396d Mon Sep 17 00:00:00 2001 From: xieqiyu Date: Thu, 21 Dec 2023 20:32:01 +0800 Subject: [PATCH] * Fix bug#42164. --- module/story/js/batchedit.ui.js | 2 +- module/story/zen.php | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/module/story/js/batchedit.ui.js b/module/story/js/batchedit.ui.js index eff3373a30..bdd4acdecf 100644 --- a/module/story/js/batchedit.ui.js +++ b/module/story/js/batchedit.ui.js @@ -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); diff --git a/module/story/zen.php b/module/story/zen.php index 2ed9ce8b74..dc03c90804 100644 --- a/module/story/zen.php +++ b/module/story/zen.php @@ -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));