Skip to content

Commit b57386f

Browse files
authored
Merge pull request #292 from iteratec/bugfix/pageComparisonChart
Use correct properties when creating BarchartSeries/-Datum
2 parents 3ece64f + 3aeba88 commit b57386f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

grails-app/controllers/de/iteratec/osm/result/PageComparisonController.groovy

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,14 +64,14 @@ class PageComparisonController extends ExceptionHandlerController {
6464
BarchartDatum comparativeSeries = mapToSeriesFor(aggregation.comperativeAggregation)
6565
return new BarchartSeries(
6666
stacked: false,
67-
dimensionalUnit: aggregation.baseAggregation.selectedMeasurand.getMeasurandGroup().unit.label,
67+
dimensionalUnit: aggregation.baseAggregation.unit,
6868
data: [baseSeries, comparativeSeries]
6969
)
7070
}
7171

7272
private BarchartDatum mapToSeriesFor(BarchartAggregation aggregation) {
7373
return new BarchartDatum(
74-
measurand: i18nService.msg("de.iteratec.isr.measurand.${aggregation.selectedMeasurand.name}", aggregation.selectedMeasurand.name),
74+
measurand: i18nService.msg("de.iteratec.isr.measurand.${aggregation.measurandName}", aggregation.measurandName),
7575
value: aggregation.value,
7676
aggregationValue: aggregation.aggregationValue,
7777
grouping: "${aggregation.jobGroup.name} | ${aggregation.page.name}")

0 commit comments

Comments
 (0)