From e076bcc39fbca814f03122fd28fa25c8cbc022ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=94=E4=BB=A4=E8=8C=82?= Date: Wed, 23 Nov 2022 09:12:29 +0000 Subject: [PATCH] + Resolved feedback #1514, notice error when project required. --- module/bug/js/common.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/module/bug/js/common.js b/module/bug/js/common.js index 9f0d4a336f..e7baa1bba6 100644 --- a/module/bug/js/common.js +++ b/module/bug/js/common.js @@ -293,14 +293,15 @@ function loadProductStories(productID) */ function loadProductProjects(productID) { + required = $('#project_chosen').hasClass('required'); branch = $('#branch').val(); if(typeof(branch) == 'undefined') branch = 0; - link = createLink('product', 'ajaxGetProjects', 'productID=' + productID + '&branch=' + branch + '&projectID=' + oldProjectID); $('#projectBox').load(link, function() { $(this).find('select').chosen(); var projectID = $('#project').find("option:selected").val(); + if(required) $(this).find('#project_chosen').addClass('required'); loadProductExecutions(productID, projectID); }); }