From cea07f16b63ba1d59fd9017e9ac1f11cfb666dd0 Mon Sep 17 00:00:00 2001 From: tianshujie Date: Mon, 24 Apr 2023 13:48:24 +0800 Subject: [PATCH] * Fix bug #34671. --- module/bug/js/batchcreate.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/bug/js/batchcreate.js b/module/bug/js/batchcreate.js index 76eb225198..dd63b09c00 100644 --- a/module/bug/js/batchcreate.js +++ b/module/bug/js/batchcreate.js @@ -84,7 +84,7 @@ function setLane(regionID, num) */ function loadExecutionBuilds(productID, executionID, index) { - var branch = $('#branches' + index).val(); + var branch = $('#branches' + index).val() ? $('#branches' + index).val() : 0; if(executionID == 'ditto') { for(var i = index - 1; i > 0, executionID == 'ditto'; i--)