diff options
author | Ted Trask <ttrask01@yahoo.com> | 2013-04-30 00:24:39 +0000 |
---|---|---|
committer | Ted Trask <ttrask01@yahoo.com> | 2013-04-30 00:24:39 +0000 |
commit | aaefbac6efe92e3a71c44f5562b1b7eade9cb151 (patch) | |
tree | b97a7f697ee60240632c8e349549423fc5abdc8a /app | |
parent | f061d2e63e5d63fbc25fb03774ba78723871165f (diff) | |
download | acf-core-aaefbac6efe92e3a71c44f5562b1b7eade9cb151.tar.bz2 acf-core-aaefbac6efe92e3a71c44f5562b1b7eade9cb151.tar.xz |
Fix null clientdata handling bug when recursing
Diffstat (limited to 'app')
-rw-r--r-- | app/acf_www-controller.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/acf_www-controller.lua b/app/acf_www-controller.lua index 6a5f49c..7db5f39 100644 --- a/app/acf_www-controller.lua +++ b/app/acf_www-controller.lua @@ -565,6 +565,7 @@ logevent = function ( message ) end handle_clientdata = function(form, clientdata) + clientdata = clientdata or {} form.errtxt = nil for name,value in pairs(form.value) do value.errtxt = nil @@ -581,7 +582,7 @@ handle_clientdata = function(form, clientdata) end clientdata[name] = actualval end - if value.type == "group" then + if value.type == "group" and clientdata[name] then handle_clientdata(value, clientdata[name]) elseif value.type == "boolean" then --- HTML forms simply don't include checkboxes unless they're checked |