Proper autogenerateg groups detection

This commit is contained in:
Yegor Vialov 2018-11-23 14:33:03 +02:00
parent c5960de0be
commit 67fbdb13c6

View File

@ -126,7 +126,7 @@ class EntityCollection {
List<Entity> groups = [];
List<Entity> nonGroupEntities = [];
_allEntities.forEach((id, entity){
if ((id.indexOf("group.") == 0) && (id.indexOf(".all_") == -1) && (!entity.isView)) {
if (entity.isGroup && (entity.attributes['auto'] == null || !entity.attributes['auto']) && (!entity.isView)) {
groups.add(entity);
}
if (!entity.isGroup) {