From 6367ecd138426e8fedbd3d41c8cc6b8933271bf8 Mon Sep 17 00:00:00 2001 From: lanzongjun Date: Tue, 8 Nov 2022 14:12:37 +0800 Subject: [PATCH] * finish task #75328 --- module/story/view/header.html.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/module/story/view/header.html.php b/module/story/view/header.html.php index 0603e0dc7b..0cbe4db07e 100644 --- a/module/story/view/header.html.php +++ b/module/story/view/header.html.php @@ -128,6 +128,11 @@ function loadProductBranches(productID) loadModuleForSiblings(productID, 0, 0) loadPlanForSiblings(productID, 0, 0) } + else + { + loadProductModules(productID, 0); + loadProductPlans(productID, 0); + } } else { @@ -191,7 +196,7 @@ function loadProductPlans(productID, branch) if(!branch) branch = 0; var expired = config.currentMethod == 'create' ? 'unexpired' : ''; planLink = createLink('product', 'ajaxGetPlans', 'productID=' + productID + '&branch=' + branch + '&planID=' + $('#plan').val() + '&fieldID=&needCreate=true&expired='+ expired +'¶m=skipParent,' + config.currentMethod); - var $planIdBox = $('#planIdBox'); + var $planIdBox = $('.switchBranch #planIdBox'); $planIdBox.load(planLink, function() { $planIdBox.find('#plan').chosen();