Skip to content

Commit e4676ab

Browse files
Fix bad message key on equipments by filter deletion (#37)
1 parent 855b773 commit e4676ab

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/org/gridsuite/modification/modifications/ByFilterDeletion.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,8 @@ public void apply(Network network, ReportNode subReportNode) {
8181
Map.of("filterNames", filterNames), TypedValue.WARN_SEVERITY);
8282
} else {
8383
subReportNode.newReportNode()
84-
.withMessageTemplate("equipmentDeleted", "${nbEquipments} equipments of type=${type} will be removed")
85-
.withUntypedValue("nbEquipments", identifiableAttributes.stream().map(IdentifiableAttributes::getId).count())
84+
.withMessageTemplate("equipmentByFilterDeleted", "${nbEquipments} equipments of type=${type} will be removed")
85+
.withUntypedValue("nbEquipments", (long) identifiableAttributes.size())
8686
.withUntypedValue("type", modificationInfos.getEquipmentType().name())
8787
.withSeverity(TypedValue.INFO_SEVERITY)
8888
.add();

0 commit comments

Comments
 (0)