From dfcf2ba3b401381f83984d5ad9e2482c2731279b Mon Sep 17 00:00:00 2001 From: Vokhmin Alexey V Date: Tue, 3 Sep 2013 20:23:06 +0400 Subject: [PATCH] Fixed: Sometimes groups of build_lists hided. --- .../angularjs/controllers/build_lists_controller.js.erb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/assets/javascripts/angularjs/controllers/build_lists_controller.js.erb b/app/assets/javascripts/angularjs/controllers/build_lists_controller.js.erb index 9d51ec89c..f9d6da334 100644 --- a/app/assets/javascripts/angularjs/controllers/build_lists_controller.js.erb +++ b/app/assets/javascripts/angularjs/controllers/build_lists_controller.js.erb @@ -64,6 +64,7 @@ RosaABF.controller('BuildListsController', ['$scope', '$http', '$location', '$ti var sorted_build_lists = _.sortBy(bl.related, function(b) { return $scope.map_priorities[b.status]; }); bl.clearRelated(); var first_in_group = sorted_build_lists[0]; + first_in_group.clearRelated(); _.each(sorted_build_lists, function(b){ if (b != first_in_group) { first_in_group.addRelated(b); } $scope.build_lists.push(b);