Skip to content

Commit 0c256a9

Browse files
committed
Merge origin/master
2 parents 961be24 + 2bdbae4 commit 0c256a9

File tree

3 files changed

+3
-10
lines changed

3 files changed

+3
-10
lines changed

source/src/main/java/org/cerberus/core/apiprivate/CampaignExecutionPrivateController.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ public ResponseEntity<String> getTagStatistics(
153153
}
154154
}
155155
}
156-
response.put("globalGroup1List", campaignGroups1);
156+
response.put("group1List", new HashSet<>(campaignGroups1.values())); //Hashset has only unique values
157157
response.put("campaignStatistics", aggregateListByCampaign);
158158
return ResponseEntity.ok(response.toString());
159159
} catch (JSONException exception) {

source/src/main/java/org/cerberus/core/servlet/crud/test/UpdateTestCaseWithDependencies.java

+1-8
Original file line numberDiff line numberDiff line change
@@ -245,14 +245,7 @@ private List<TestCaseCountryProperties> getTestCaseCountryPropertiesFromParamete
245245
if (propJson.has("value3")) {
246246
value3 = propJson.getString("value3");
247247
}
248-
249-
String length = "";
250-
if (propJson.get("length") instanceof Number) { //Default value at property creation is integer with value 0.
251-
length = String.valueOf(propJson.getInt("length"));
252-
} else if (propJson.get("length") instanceof String) {
253-
length = propJson.getString("length");
254-
}
255-
248+
String length = propJson.getString("length");
256249
int rowLimit = propJson.getInt("rowLimit");
257250
int retryNb = propJson.optInt("retryNb");
258251
int retryPeriod = propJson.optInt("retryPeriod");

source/src/main/webapp/js/pages/ReportingCampaignStatistics.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ function getStatistics() {
249249
updateDatatable($("#tagStatisticTable"), data);
250250
removeLoadingStatus($("#tagStatisticList"));
251251
$('#group1Select').prop('disabled', false);
252-
setSelectOptions("#group1Select", data.globalGroup1List);
252+
setSelectOptions("#group1Select", data.group1List);
253253
}
254254
});
255255
}

0 commit comments

Comments
 (0)