diff options
Diffstat (limited to 'aconf/model/field.lua')
-rw-r--r-- | aconf/model/field.lua | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/aconf/model/field.lua b/aconf/model/field.lua index 8b300a5..26711f2 100644 --- a/aconf/model/field.lua +++ b/aconf/model/field.lua @@ -335,7 +335,9 @@ function M.TreeNode:save(context, value) local path = context.path if value == path then return end - if type(value) == 'string' then value = context.txn:fetch(value) end + if type(value) == 'string' then + value = node.fetch(context.parent, value) + end if object.isinstance(value, node.TreeNode) and node.path(value) == path then return end |