File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
src/main/java/org/gridsuite/modification/server/repositories Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -367,8 +367,11 @@ private TabularModificationInfos loadTabularModification(ModificationEntity modi
367
367
// re-order the list of entities based on the ordered list of IDs
368
368
List <EquipmentModificationEntity > orderedModifications = reorderModifications (modifications , subModificationsUuids );
369
369
// then build DTOs
370
- return TabularModificationInfos .builder ()
371
- .uuid (tabularModificationEntity .getId ())
370
+ var builder = TabularModificationInfos .builder ();
371
+ if (tabularModificationEntity .getType ().equals (ModificationType .LIMIT_SETS_TABULAR_MODIFICATION .name ())) {
372
+ builder = LimitSetsTabularModificationInfos .builder ();
373
+ }
374
+ return builder .uuid (tabularModificationEntity .getId ())
372
375
.date (tabularModificationEntity .getDate ())
373
376
.stashed (tabularModificationEntity .getStashed ())
374
377
.activated (tabularModificationEntity .getActivated ())
You can’t perform that action at this time.
0 commit comments