* [bug#57250,start,2h] reload with fromID and fromType.

This commit is contained in:
liumengyi
2025-01-06 15:56:22 +08:00
committed by 田淑杰
parent 097e46e889
commit 7f0756cd53
+4 -1
View File
@@ -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));
}