From c1f980e6d72666fcd2bd02e964fa129f097786b4 Mon Sep 17 00:00:00 2001 From: xieqiyu Date: Mon, 7 Nov 2022 02:24:55 +0000 Subject: [PATCH] * Fix bug#29335. --- module/story/view/header.html.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/module/story/view/header.html.php b/module/story/view/header.html.php index 2bc1358285..0603e0dc7b 100644 --- a/module/story/view/header.html.php +++ b/module/story/view/header.html.php @@ -93,10 +93,10 @@ function loadProductBranches(productID) $('#branch').remove(); $('#branch_chosen').remove(); - var isSiblings = storyType == 'story' ? 'yes' : 'no'; + var isSiblings = storyType == 'story' && page == 'create' ? 'yes' : 'no'; $.get(createLink('branch', 'ajaxGetBranches', "productID=" + productID + "&oldBranch=0¶m=" + param + "&projectID=" + executionID + "&withMainBranch=1&isSiblings=" + isSiblings), function(data) { - if(storyType == 'story') + if(storyType == 'story' && page == 'create') { var newProductType = data ? 'normal' : 'branch'; if(originProductType != newProductType)