Created
May 5, 2015 19:53
-
-
Save wlach/7fa3c8c33c234de8630c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/webapp/app/js/perf.js b/webapp/app/js/perf.js | |
index b9681ca..908d60f 100644 | |
--- a/webapp/app/js/perf.js | |
+++ b/webapp/app/js/perf.js | |
@@ -82,6 +82,8 @@ perf.factory('PhSeries', ['$http', 'thServiceDomain', function($http, thServiceD | |
}); | |
if (series) { | |
+ // if it is not a summary series, then find the summary series | |
+ // corresponding to it (could be more than one) and use that | |
if (!series.subtestSignatures) { | |
series = _.filter(lists.seriesList, | |
function(s) { | |
@@ -90,8 +92,8 @@ perf.factory('PhSeries', ['$http', 'thServiceDomain', function($http, thServiceD | |
}); | |
}); | |
} | |
- subtestSignatures = _.union(_.map(series, 'subtestSignatures'))[0]; | |
- suiteName = _.union(_.map(series, 'name'))[0]; | |
+ subtestSignatures = _.union(_.flatten(_.pluck(series, 'subtestSignatures'))); | |
+ suiteName = _.union(_.pluck(series, 'name'))[0]; | |
} | |
//For each subtest, find the matching series in the list and store it |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment