Commit 9e90326f authored by Ted Trask's avatar Ted Trask
Browse files

Fix minor bug where form is submitted with 'submit'

parent 364262a1
......@@ -37,7 +37,7 @@ end
function mymodule.viewweblog(self)
local retval = self.handle_form(self, self.model.getweblogparameters, self.model.getweblog, self.clientdata, "Update", "Display Weblog")
-- We want to get the weblog even if form wasn't submitted
if not self.clientdata.Update then
if not self.clientdata.submit then
self.handle_clientdata(retval, self.clientdata)
retval = self.model.getweblog(self, retval)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment