diff options
Diffstat (limited to 'lib/controllerfunctions.lua')
-rw-r--r-- | lib/controllerfunctions.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/controllerfunctions.lua b/lib/controllerfunctions.lua index aba22ed..9c9af31 100644 --- a/lib/controllerfunctions.lua +++ b/lib/controllerfunctions.lua @@ -65,12 +65,12 @@ function handle_clientdata(form, clientdata, group) end function handle_form(self, getFunction, setFunction, clientdata, option, label, descr) - local form = getFunction() + local form = getFunction(clientdata) - if clientdata[option] then + if clientdata.submit then handle_clientdata(form, clientdata) - form = setFunction(form) + form = setFunction(form, clientdata.submit) if not form.errtxt and descr then form.descr = descr end |