From 67fbdb13c61f64a4a94c63428a761365df1df7bc Mon Sep 17 00:00:00 2001 From: Yegor Vialov Date: Fri, 23 Nov 2018 14:33:03 +0200 Subject: [PATCH] Proper autogenerateg groups detection --- lib/entity_collection.class.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/entity_collection.class.dart b/lib/entity_collection.class.dart index 263c89c..6fb7ef1 100644 --- a/lib/entity_collection.class.dart +++ b/lib/entity_collection.class.dart @@ -126,7 +126,7 @@ class EntityCollection { List groups = []; List 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) {