From c49ee4d3e3d1a9597601243e4887b1d446047209 Mon Sep 17 00:00:00 2001 From: Arthur Schiwon Date: Fri, 31 May 2013 20:06:40 +0200 Subject: [PATCH] LDAP: fix setting value of checkbox after loading configuration --- apps/user_ldap/js/settings.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/user_ldap/js/settings.js b/apps/user_ldap/js/settings.js index f47d49cf222..52d5dbc48d9 100644 --- a/apps/user_ldap/js/settings.js +++ b/apps/user_ldap/js/settings.js @@ -14,7 +14,7 @@ var LdapConfiguration = { //deal with Checkboxes if($(elementID).is('input[type=checkbox]')) { - if(configvalue === 1) { + if(parseInt(configvalue) === 1) { $(elementID).attr('checked', 'checked'); } else { $(elementID).removeAttr('checked');