don't break if polgroups are not set
This commit is contained in:
parent
cfc909fb72
commit
b3aea0ef35
|
@ -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
|
||||
|
|
Reference in New Issue