# HG changeset patch # User Marcin Kuzminski # Date 2011-06-13 18:04:42 # Node ID a1ab3e9c7e82585a88df66d2d9ec21e396e1d347 # Parent 39ae0f0972b9e531f23d9798db7fdecce6f46669 fixes #204, ldap active checkbox, credits goes to Matt Little. diff --git a/rhodecode/model/db.py b/rhodecode/model/db.py --- a/rhodecode/model/db.py +++ b/rhodecode/model/db.py @@ -103,6 +103,9 @@ class RhodeCodeSettings(Base): fd = {} for row in ret: fd.update({row.app_settings_name:row.app_settings_value}) + + fd.update({'ldap_active':str2bool(fd.get('ldap_active'))}) + return fd diff --git a/rhodecode/templates/admin/ldap/ldap.html b/rhodecode/templates/admin/ldap/ldap.html --- a/rhodecode/templates/admin/ldap/ldap.html +++ b/rhodecode/templates/admin/ldap/ldap.html @@ -28,7 +28,7 @@

${_('Connection settings')}

-
${h.checkbox('ldap_active','true',class_='small')}
+
${h.checkbox('ldap_active',True,class_='small')}