changeset 2746:949994a4c3cf

Fixed traceback which comes when a superuser views the Admin > Users and Admin > Groups reports
author Saurabh Kathpalia <saurabh.kathpalia95@gmail.com>
date Sun, 17 Aug 2014 17:44:53 +0530
parents 9cf72a984b38
children 8c2dea536d8f
files MoinMoin/datastruct/backends/wiki_groups.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/datastruct/backends/wiki_groups.py	Sun Aug 17 17:44:04 2014 +0530
+++ b/MoinMoin/datastruct/backends/wiki_groups.py	Sun Aug 17 17:44:53 2014 +0530
@@ -41,8 +41,8 @@
         To find group pages, app.cfg.cache.item_group_regexact pattern is used.
         """
         # TODO: use whoosh to search for group_regex matching items
-        item_list = [rev.name for rev in flaskg.unprotected_storage.documents()
-                     if self.item_group_regex.search(rev.name)]
+        item_list = [rev.fqname.value for rev in flaskg.unprotected_storage.documents()
+                     if self.item_group_regex.search(rev.fqname.value)]
         return iter(item_list)
 
     def __getitem__(self, group_name):