Browse Source

BugFix: Ensure unique search results in the list

master
Dirk Alders 2 months ago
parent
commit
43c441fc56
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      pages/views.py

+ 1
- 1
pages/views.py View File

110
     if sr is None:
110
     if sr is None:
111
         django_messages.error(request, _('Invalid search pattern: %s') % repr(search_txt))
111
         django_messages.error(request, _('Invalid search pattern: %s') % repr(search_txt))
112
         sr = []
112
         sr = []
113
-    pl = page_list(request, [creole_page(request, rel_path) for rel_path in sr])
113
+    pl = page_list(request, [creole_page(request, rel_path) for rel_path in set(sr)])
114
     #
114
     #
115
     context_adaption(
115
     context_adaption(
116
         context,
116
         context,

Loading…
Cancel
Save