From d63d749c3d03ae2cb0d769724cee6d03bb8d16e1 Mon Sep 17 00:00:00 2001 From: Bogdan Kostov Date: Sun, 9 Jun 2024 20:39:34 +0200 Subject: [PATCH] [Fix kbss-cvut/fta-fmea-ui#384] Fix adding new fault event with existing supertype in fault tree diagram - replace instances in supertypes with managed entities --- .../cvut/kbss/analysis/service/FaultEventRepositoryService.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/cz/cvut/kbss/analysis/service/FaultEventRepositoryService.java b/src/main/java/cz/cvut/kbss/analysis/service/FaultEventRepositoryService.java index 083a1f0..3be2a89 100755 --- a/src/main/java/cz/cvut/kbss/analysis/service/FaultEventRepositoryService.java +++ b/src/main/java/cz/cvut/kbss/analysis/service/FaultEventRepositoryService.java @@ -62,6 +62,7 @@ public FaultEvent addInputEvent(URI eventUri, FaultEvent inputEvent) { if(inputEvent.getUri() == null && inputEvent.getRectangle() == null) inputEvent.setRectangle(new Rectangle()); + faultEventDao.loadManagedSupertypes(inputEvent); currentEvent.addChild(inputEvent); update(currentEvent);