From 0305f13089ad394b5dec98e741fe6aeb77e5be3b Mon Sep 17 00:00:00 2001 From: Julian de Anquin Date: Tue, 17 Apr 2018 14:30:59 -0300 Subject: [PATCH] AMP-27607 make measures non mandatory for custom reports --- .../kernel/ampapi/endpoints/reports/ReportsUtil.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/amp/WEB-INF/src/org/digijava/kernel/ampapi/endpoints/reports/ReportsUtil.java b/amp/WEB-INF/src/org/digijava/kernel/ampapi/endpoints/reports/ReportsUtil.java index 65abc241d04..c95bc1685d8 100644 --- a/amp/WEB-INF/src/org/digijava/kernel/ampapi/endpoints/reports/ReportsUtil.java +++ b/amp/WEB-INF/src/org/digijava/kernel/ampapi/endpoints/reports/ReportsUtil.java @@ -634,9 +634,10 @@ public static final JsonBean validateReportConfig(JsonBean formParams, ColumnsVisibility.getConfigurableColumns(), isCustom); if (err != null) errors.add(err); - // validate the measures + // validate the measures they are not mandatory anymore since we have + // measureless reports err = validateList("measures", (List) formParams.get(EPConstants.ADD_MEASURES), - MeasuresVisibility.getConfigurableMeasures(), isCustom); + MeasuresVisibility.getConfigurableMeasures(), false); if (err != null) errors.add(err); // validate the hierarchies