diff --git a/module/bug/js/create.ui.js b/module/bug/js/create.ui.js index 2b16c126e3..3e9b63cbbc 100644 --- a/module/bug/js/create.ui.js +++ b/module/bug/js/create.ui.js @@ -1,4 +1,7 @@ window.reloadByProduct = function(e) { - loadPage($.createLink('bug', 'create', 'productID=' + $(e.target).val() + '&branch=0&extra=projectID=' + projectID + ',executionID=' + executionID)); + let extra = 'projectID=' + projectID + ',executionID=' + executionID; + if(typeof fromID != 'undefined') extra += ',fromID=' + fromID; + if(typeof fromType != 'undefined') extra += ',fromType=' + fromType; + loadPage($.createLink('bug', 'create', 'productID=' + $(e.target).val() + '&branch=0&extra=' + extra)); }