aboutsummaryrefslogtreecommitdiffstats
path: root/util/datamapper.lua
diff options
context:
space:
mode:
Diffstat (limited to 'util/datamapper.lua')
-rw-r--r--util/datamapper.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/util/datamapper.lua b/util/datamapper.lua
index a0c11166..cb008695 100644
--- a/util/datamapper.lua
+++ b/util/datamapper.lua
@@ -105,7 +105,9 @@ function parse_object(schema, s)
else
c = s:get_child(nil, namespace);
end
- value = c.name;
+ if type(c) == "table" then
+ value = c.name;
+ end
elseif value_where == "in_attribute" then
local attr = name
if prefix then