Skip to content

Commit

Permalink
Merge pull request #112 from kbss-cvut/fix/fta-mfea-352-updating-faul…
Browse files Browse the repository at this point in the history
…t-event

fta-fmea-ui#352 Fix api for updating fault events
  • Loading branch information
kostobog authored Jun 9, 2024
2 parents ae86779 + b98863a commit 3d6e796
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,14 @@ public void updateChildrenSequence(URI faultEventUri, List<URI> childrenSequence
log.info("< updateChildrenSequence");
}

@Override
protected void preUpdate(FaultEvent instance) {
if(instance.getSupertypes() != null && !instance.getSupertypes().isEmpty())
faultEventDao.loadManagedSupertypes(instance);

super.preUpdate(instance);
}

@Transactional
public void update(Rectangle rect){
faultEventDao.update(rect);
Expand Down

0 comments on commit 3d6e796

Please sign in to comment.