summaryrefslogtreecommitdiffstats
path: root/acf/model/field.lua
diff options
context:
space:
mode:
Diffstat (limited to 'acf/model/field.lua')
-rw-r--r--acf/model/field.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/acf/model/field.lua b/acf/model/field.lua
index 98a4397..c69b4d7 100644
--- a/acf/model/field.lua
+++ b/acf/model/field.lua
@@ -193,7 +193,7 @@ function TreeNode:save(context, value)
local path = context.path
if value == path then return end
- if type(value) == 'string' then value = context.txn:search(value) end
+ if type(value) == 'string' then value = context.txn:fetch(value) end
if object.isinstance(value, node.TreeNode) and node.path(value) == path then
return
end