summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--idp/extra/modules/root.ptl2
1 files changed, 1 insertions, 1 deletions
diff --git a/idp/extra/modules/root.ptl b/idp/extra/modules/root.ptl
index fbb7fba..db4713c 100644
--- a/idp/extra/modules/root.ptl
+++ b/idp/extra/modules/root.ptl
@@ -180,7 +180,7 @@ class AlternateRootDirectory(OldRootDirectory):
collectivity = get_request().cookies['collectivity']
except KeyError:
collectivity = None
- if collectivity not in [x.dn for x in collectivities]:
+ if collectivity not in [x[0] for x in collectivities]:
collectivity = None
form.add(SingleSelectWidget, 'collectivity', title = _('Collectivity'), required = True,
value = collectivity, options = collectivities)