aboutsummaryrefslogtreecommitdiffstats
path: root/teal-src
diff options
context:
space:
mode:
Diffstat (limited to 'teal-src')
-rw-r--r--teal-src/util/datamapper.tl4
1 files changed, 3 insertions, 1 deletions
diff --git a/teal-src/util/datamapper.tl b/teal-src/util/datamapper.tl
index f0e7d6bc..3cbc7fda 100644
--- a/teal-src/util/datamapper.tl
+++ b/teal-src/util/datamapper.tl
@@ -138,7 +138,9 @@ function parse_object (schema : schema_t, s : st.stanza_t) : { string : any }
else
c = s:get_child(nil, namespace);
end
- value = c.name;
+ if c is st.stanza_t then
+ value = c.name;
+ end
elseif value_where == "in_attribute" then
local attr = name
if prefix then