diff --git a/module/bug/js/batchedit.ui.js b/module/bug/js/batchedit.ui.js index b1fb49468b..d4112a3a28 100644 --- a/module/bug/js/batchedit.ui.js +++ b/module/bug/js/batchedit.ui.js @@ -306,3 +306,13 @@ function executionChange(event) loadProductBuilds($row, productID); } } + +function loadProjectByExecutionID($row, executionID) +{ + const link = $.createLink('project', 'ajaxGetPairsByExecution', 'executionID=' + executionID, 'json'); + $.post(link, function(data) + { + $projectPicker = $row.find('[name^=project]').zui('picker'); + $projectPicker.$.setValue(data.id.toString()); + }, 'json') +}