From 559be058b6ab66dc9148fb4ed347a0f969a45692 Mon Sep 17 00:00:00 2001 From: parveenkumaryadav Date: Wed, 28 Feb 2018 09:26:58 +0530 Subject: Cycle in group hierarchy bug fix while editing Groups --- src/org/traccar/database/GroupsManager.java | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/org/traccar/database') diff --git a/src/org/traccar/database/GroupsManager.java b/src/org/traccar/database/GroupsManager.java index c1a07a498..1d507a26a 100644 --- a/src/org/traccar/database/GroupsManager.java +++ b/src/org/traccar/database/GroupsManager.java @@ -75,6 +75,12 @@ public class GroupsManager extends BaseObjectManager implements Managable super.addNewItem(group); } + @Override + public void updateItem(Group group) throws SQLException { + checkGroupCycles(group); + super.updateItem(group); + } + @Override protected void updateCachedItem(Group group) { checkGroupCycles(group); -- cgit v1.2.3