mirror of
https://github.com/bjc/prosody.git
synced 2025-04-04 05:37:39 +03:00
util.dataforms: Ensure fields have names when collecting data (fixes traceback, thanks Martin)
This commit is contained in:
parent
0913989a69
commit
9917c35bb6
1 changed files with 1 additions and 1 deletions
|
@ -155,7 +155,7 @@ function form_t.data(layout, stanza)
|
|||
if field.required then
|
||||
errors[field.name] = "Required value missing";
|
||||
end
|
||||
else
|
||||
elseif field.name then
|
||||
present[field.name] = true;
|
||||
local reader = field_readers[field.type];
|
||||
if reader then
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue