summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Dauvergne <bdauvergne@entrouvert.com>2009-11-27 19:57:17 (GMT)
committerBenjamin Dauvergne <bdauvergne@entrouvert.com>2009-11-27 19:57:17 (GMT)
commitec923ff2e2d0854d54cfa83282f066c85b65c948 (patch)
treef7d25ce789ded88df8c18942a7c82ab1add34b7a
parent9f766416bea3ca42c1586e71559659396653c2ca (diff)
parent70808926f5d17c2359608fba3caa0f4f72bd9440 (diff)
downloadpratic-ec923ff2e2d0854d54cfa83282f066c85b65c948.zip
pratic-ec923ff2e2d0854d54cfa83282f066c85b65c948.tar.gz
pratic-ec923ff2e2d0854d54cfa83282f066c85b65c948.tar.bz2
Merge branch 'master' of ssh://bdauvergne@git.labs.libre-entreprise.org/gitroot/pratic
-rw-r--r--idp/extra/modules/root.ptl2
1 files changed, 2 insertions, 0 deletions
diff --git a/idp/extra/modules/root.ptl b/idp/extra/modules/root.ptl
index 58a8a31..fbb7fba 100644
--- a/idp/extra/modules/root.ptl
+++ b/idp/extra/modules/root.ptl
@@ -180,6 +180,8 @@ class AlternateRootDirectory(OldRootDirectory):
collectivity = get_request().cookies['collectivity']
except KeyError:
collectivity = None
+ if collectivity not in [x.dn for x in collectivities]:
+ collectivity = None
form.add(SingleSelectWidget, 'collectivity', title = _('Collectivity'), required = True,
value = collectivity, options = collectivities)
form.widgets.append(password_widget)