From b3aea0ef352084f4fee8bcba7cfc32beb8fd0565 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Tue, 17 May 2016 13:22:46 +0200 Subject: [PATCH] don't break if polgroups are not set --- tabellio/searchform/form.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tabellio/searchform/form.py b/tabellio/searchform/form.py index 7697a11..27c69a1 100644 --- a/tabellio/searchform/form.py +++ b/tabellio/searchform/form.py @@ -294,6 +294,8 @@ def possible_sessions(context): def possible_polgroups(context): current = getToolByName(context, 'portal_url').getPortalObject() settings = component.getUtility(IRegistry).forInterface(ITabellioSettings, False) + if not settings.polgroupsPath: + return SimpleVocabulary([]) for part in settings.polgroupsPath.split('/'): if not part: continue