diff options
author | parveenkumaryadav <parveenkumardeeva@gmail.com> | 2018-02-28 09:26:58 +0530 |
---|---|---|
committer | parveenkumaryadav <parveenkumardeeva@gmail.com> | 2018-02-28 09:26:58 +0530 |
commit | 559be058b6ab66dc9148fb4ed347a0f969a45692 (patch) | |
tree | af45e5168740e6b9c4e506573fe1a1e097ef7ae9 /src/org/traccar/database | |
parent | 80a78016a1216f5147c0b770b4192596e803a58b (diff) | |
download | trackermap-server-559be058b6ab66dc9148fb4ed347a0f969a45692.tar.gz trackermap-server-559be058b6ab66dc9148fb4ed347a0f969a45692.tar.bz2 trackermap-server-559be058b6ab66dc9148fb4ed347a0f969a45692.zip |
Cycle in group hierarchy bug fix while editing Groups
Diffstat (limited to 'src/org/traccar/database')
-rw-r--r-- | src/org/traccar/database/GroupsManager.java | 6 |
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); |