# HG changeset patch # User Kim Alvefur # Date 1582746698 -3600 # Node ID 1df4900bbd29f03cba0741552901bf4435c57314 # Parent 064c32a5be7c4a9cec42be59de7eb1351369652a mod_rest: Fix another missing switch from array to map in json mapping diff -r 064c32a5be7c -r 1df4900bbd29 mod_rest/jsonmap.lib.lua --- a/mod_rest/jsonmap.lib.lua Wed Feb 26 20:14:14 2020 +0100 +++ b/mod_rest/jsonmap.lib.lua Wed Feb 26 20:51:38 2020 +0100 @@ -292,7 +292,7 @@ cmd:text_tag("note", s.note.text, { type = s.note.type }); end if s.form then - cmd:add_child(dataform[5] (s.form)); + cmd:add_child(dataform.json2st(s.form)); elseif s.data then cmd:add_child(formdata(s.data)); end