From e9fad04c1436e985593a69114650b3218c1a1538 Mon Sep 17 00:00:00 2001 From: Ghazoua Rehili Date: Mon, 16 Sep 2024 17:16:14 +0200 Subject: [PATCH] fix connectable position adder attributes (#536) Signed-off-by: Ghazwa Rehili --- .../modification/server/modifications/ModificationUtils.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/gridsuite/modification/server/modifications/ModificationUtils.java b/src/main/java/org/gridsuite/modification/server/modifications/ModificationUtils.java index b48b82412..02a6b04b5 100644 --- a/src/main/java/org/gridsuite/modification/server/modifications/ModificationUtils.java +++ b/src/main/java/org/gridsuite/modification/server/modifications/ModificationUtils.java @@ -684,8 +684,9 @@ private void createNewConnectivityPosition(ConnectablePositionAdder adder, reports.add(connectionPositionReport); } - // Finalize by adding the feeder - adder.add(); + if (connectionNameReport != null || connectionDirectionReport != null || connectionPositionReport != null) { + adder.add(); + } } public void modifyInjectionConnection(InjectionModificationInfos modificationInfos, Injection injection, List subReportNode) {