Skip to content

Commit a797583

Browse files
committed
After the BarchartCommand changed we now have to search for job groups by id and not by name
1 parent b57386f commit a797583

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

grails-app/controllers/de/iteratec/osm/csi/CsiBenchmarkController.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ class CsiBenchmarkController extends ExceptionHandlerController {
5353
}
5454

5555
String selectedCsiType = params.csiType == "visuallyComplete" ? 'csByWptVisuallyCompleteInPercent' : 'csByWptDocCompleteInPercent'
56-
List<JobGroup> allJobGroups = JobGroup.findAllByNameInList(cmd.jobGroups)
56+
List<JobGroup> allJobGroups = JobGroup.findAllByIdInList(cmd.jobGroups)
5757

5858
CsiAggregationInterval interval = CsiAggregationInterval.findByIntervalInMinutes(CsiAggregationInterval.DAILY)
5959

grails-app/views/csiBenchmark/show.gsp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,8 @@
106106
data: {
107107
from: selectedTimeFrame[0].toISOString(),
108108
to: selectedTimeFrame[1].toISOString(),
109-
selectedJobGroups: JSON.stringify($.map($("#folderSelectHtmlId option:selected"), function (e) {
110-
return $(e).text()
109+
jobGroups: JSON.stringify($.map($("#folderSelectHtmlId option:selected"), function (e) {
110+
return parseInt(e.value);
111111
})),
112112
csiType: $('input[name=csiTypeRadios]:checked').val()
113113
},

0 commit comments

Comments
 (0)