+ Resolved feedback #1514, notice error when project required.

This commit is contained in:
孔令茂
2022-11-23 09:12:29 +00:00
parent 68bc5b8012
commit e076bcc39f
+2 -1
View File
@@ -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);
});
}