diff options
Diffstat (limited to 'aconf/model/root.lua')
-rw-r--r-- | aconf/model/root.lua | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/aconf/model/root.lua b/aconf/model/root.lua index d92ac2d..9b05488 100644 --- a/aconf/model/root.lua +++ b/aconf/model/root.lua @@ -1,5 +1,5 @@ --[[ -Copyright (c) 2012-2014 Kaarle Ritvanen +Copyright (c) 2012-2015 Kaarle Ritvanen See LICENSE file for license details --]] @@ -82,7 +82,10 @@ function M.register(name, field, params) root:fetch(pth.to_absolute(record.scope, pth.parent(record.path))) ) set('scope', scope) - table.insert(M.topology(scope, true).referrers, record.path) + table.insert( + M.topology(pth.rawjoin(scope, record.search), true).referrers, + record.path + ) end end end |