diff --git a/module/bug/js/common.js b/module/bug/js/common.js index b730eda26d..6ee65a4f8d 100644 --- a/module/bug/js/common.js +++ b/module/bug/js/common.js @@ -101,7 +101,7 @@ function loadAllBuilds(that) { productID = $('#product').val(); projectID = $('#project').val(); - if(page == 'edit') buildBox = $(that).parent().prev().filter('span').attr('id'); + if(page == 'edit') buildBox = $(that).closest('.input-group').attr('id'); if(projectID) { diff --git a/module/bug/view/edit.html.php b/module/bug/view/edit.html.php index 8022deb477..94944fdb1e 100644 --- a/module/bug/view/edit.html.php +++ b/module/bug/view/edit.html.php @@ -216,8 +216,8 @@ js::set('oldResolvedBuild' , $bug->resolvedBuild);