From 4abd8930ef84dcdb886904c3824253874fb48aec Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Thu, 15 Jul 2010 07:59:58 +0000 Subject: Modified handling of boolean fields to allow them to be hidden. --- lib/controllerfunctions.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/controllerfunctions.lua b/lib/controllerfunctions.lua index c1461bc..ac2388e 100644 --- a/lib/controllerfunctions.lua +++ b/lib/controllerfunctions.lua @@ -18,7 +18,7 @@ function handle_clientdata(form, clientdata) clientdata[name] = actualval end if value.type == "boolean" then - value.value = (clientdata[name] ~= nil) + value.value = (clientdata[name] ~= nil) and (clientdata[name] ~= "false") elseif value.type == "multi" then if clientdata[name] == nil then -- for cli we use name[num] as the name -- cgit v1.2.3