* Fix bug#29335.

This commit is contained in:
xieqiyu
2022-11-07 02:24:55 +00:00
parent bdba95fc00
commit c1f980e6d7
+2 -2
View File
@@ -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&param=" + 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)