From 2acfab91cf04179d79b43895c0797f0ca7f9e1de Mon Sep 17 00:00:00 2001 From: liumengyi Date: Wed, 5 Jun 2024 14:17:14 +0800 Subject: [PATCH] * [bug#50437,done,0.1h] check the execution exists. --- module/bug/js/view.ui.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/bug/js/view.ui.js b/module/bug/js/view.ui.js index e255e1cb0e..95173de7dc 100644 --- a/module/bug/js/view.ui.js +++ b/module/bug/js/view.ui.js @@ -22,7 +22,7 @@ $(document).on('click', '#toTaskButton', function() if(isInModal) zui.Modal.hide(); const url = $.createLink('task', 'create', 'executionID=' + executionID + '&storyID=0&moduleID=0&taskID=0&todoID=0&extra=projectID=' + projectID + '&bugID=' + bugID); - openPage(url, executions[executionID].indexOf(disableExecution) >= 0 ? 'project' : 'execution'); + openPage(url, executions[executionID] != undefined && executions[executionID].indexOf(disableExecution) >= 0 ? 'project' : 'execution'); } else if(projectID == 0) {