summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2010-07-15 07:59:58 +0000
committerTed Trask <ttrask01@yahoo.com>2010-07-15 07:59:58 +0000
commit4abd8930ef84dcdb886904c3824253874fb48aec (patch)
tree8d1cb7834b7b298a7d57fd2c8e6902c051313042 /lib
parentee2f6b7e474b4a56113ddac19ca8bb7fd5ca5b49 (diff)
downloadacf-core-4abd8930ef84dcdb886904c3824253874fb48aec.tar.bz2
acf-core-4abd8930ef84dcdb886904c3824253874fb48aec.tar.xz
Modified handling of boolean fields to allow them to be hidden.
Diffstat (limited to 'lib')
-rw-r--r--lib/controllerfunctions.lua2
1 files changed, 1 insertions, 1 deletions
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