mod_rest: Fix another missing switch from array to map in json mapping
authorKim Alvefur <zash@zash.se>
Wed, 26 Feb 2020 20:51:38 +0100
changeset 3916 1df4900bbd29
parent 3915 064c32a5be7c
child 3917 21b30b30cc16
mod_rest: Fix another missing switch from array to map in json mapping
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