diff --git a/module/bug/js/view.js b/module/bug/js/view.js index 503b067367..22aa62bb28 100644 --- a/module/bug/js/view.js +++ b/module/bug/js/view.js @@ -45,7 +45,7 @@ $('#toTaskButton').on('click', function() var link = createLink('task', 'create', 'executionID=' + executionID + '&storyID=0&moduleID=0&taskID=0&todoID=0&extra=projectID=0&bugID=' + bugID); window.parent.$.apps.open(link, 'execution'); } - else if(projectID == 0) + else if(systemMode == 'new' && projectID == 0) { alert(errorNoProject); }