* Fix bug *19255.

This commit is contained in:
zhangzilong
2022-02-11 16:20:41 +08:00
parent 2317288f0a
commit e45058a891
2 changed files with 13 additions and 7 deletions

View File

@@ -168,13 +168,19 @@ $(function()
*/
function changeExecutionName(projectID)
{
if(!projectID) return false;
projectID ? loadProjectTeamMembers(projectID) : loadExecutionTeamMembers($('#product').val());
var link = createLink('bug', 'ajaxGetExecutionLang', 'projectID=' + projectID);
$.post(link, function(executionLang)
if(parseInt(projectID))
{
$('#executionBox').html(executionLang);
})
loadProjectTeamMembers(projectID);
var link = createLink('bug', 'ajaxGetExecutionLang', 'projectID=' + projectID);
$.post(link, function(executionLang)
{
$('#executionBox').html(executionLang);
})
}
else
{
loadExecutionTeamMembers($('#product').val());
}
}
$(window).unload(function(){

View File

@@ -30,7 +30,7 @@ $(function()
*/
function changeExecutionName(projectID)
{
if(!projectID) return false;
if(!parseInt(projectID)) return false;
var link = createLink('bug', 'ajaxGetExecutionLang', 'projectID=' + projectID);
$.post(link, function(executionLang)
{