aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorparveenkumaryadav <parveenkumardeeva@gmail.com>2018-02-28 09:26:58 +0530
committerparveenkumaryadav <parveenkumardeeva@gmail.com>2018-02-28 09:26:58 +0530
commit559be058b6ab66dc9148fb4ed347a0f969a45692 (patch)
treeaf45e5168740e6b9c4e506573fe1a1e097ef7ae9
parent80a78016a1216f5147c0b770b4192596e803a58b (diff)
downloadtraccar-server-559be058b6ab66dc9148fb4ed347a0f969a45692.tar.gz
traccar-server-559be058b6ab66dc9148fb4ed347a0f969a45692.tar.bz2
traccar-server-559be058b6ab66dc9148fb4ed347a0f969a45692.zip
Cycle in group hierarchy bug fix while editing Groups
-rw-r--r--src/org/traccar/database/GroupsManager.java6
1 files changed, 6 insertions, 0 deletions
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
@@ -76,6 +76,12 @@ public class GroupsManager extends BaseObjectManager<Group> implements Managable
}
@Override
+ public void updateItem(Group group) throws SQLException {
+ checkGroupCycles(group);
+ super.updateItem(group);
+ }
+
+ @Override
protected void updateCachedItem(Group group) {
checkGroupCycles(group);
super.updateCachedItem(group);