#289: updated JS

This commit is contained in:
Vokhmin Alexey V 2013-08-29 21:59:04 +04:00
parent afc136db9c
commit 7f153b897b
1 changed files with 2 additions and 1 deletions

View File

@ -30,7 +30,8 @@ RosaABF.controller('BuildListsController', ['$scope', '$http', '$location', '$ti
// Grouping of build_lists // Grouping of build_lists
_.each(results.build_lists, function(r){ _.each(results.build_lists, function(r){
var bl = new BuildList(r, dictionary); var bl = new BuildList(r, dictionary);
var key = bl.project_id + '-' + bl.group_id; var key = bl.project_id + '-';
key += bl.group_id ? bl.group_id : (bl.commit_hash + '-' + bl.user_id);
if (groups[key]) { if (groups[key]) {
groups[key].addRelated(bl); groups[key].addRelated(bl);
} else { } else {