diff options
Diffstat (limited to 'acf/model/init.lua')
-rw-r--r-- | acf/model/init.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/acf/model/init.lua b/acf/model/init.lua index 6b1fd64..bf4f7b4 100644 --- a/acf/model/init.lua +++ b/acf/model/init.lua @@ -136,7 +136,7 @@ function Reference:meta(context) end function Reference:follow(context, value) - return context.txn:search(pth.join(self:abs_scope(context), value)) + return context.txn:search(pth.mjoin(self:abs_scope(context), value)) end function Reference:load(context) @@ -163,7 +163,7 @@ function Reference:_validate(context, value) end -- assume one-level ref for now - if string.find(value, '/') then + if #pth.split(value) > 1 then raise(path, 'Subtree references not yet supported') end |