diff mod_rest/jsonmap.lib.lua @ 3912:1df4900bbd29

mod_rest: Fix another missing switch from array to map in json mapping
author Kim Alvefur <zash@zash.se>
date Wed, 26 Feb 2020 20:51:38 +0100
parents d5ecb9b9cb3b
children ea59c9455f93
line wrap: on
line diff
--- 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