# HG changeset patch # User jbe # Date 1571500768 -7200 # Node ID 99a0f1165ef86b33c623474af10eb0d1c40e0d23 # Parent 72e55c2eb63c44e446855019526d604e7eba4983 Use :get_reference(...) instead of .references[...] diff -r 72e55c2eb63c -r 99a0f1165ef8 libraries/mondelefant/mondelefant.lua --- a/libraries/mondelefant/mondelefant.lua Sat Oct 19 15:05:55 2019 +0200 +++ b/libraries/mondelefant/mondelefant.lua Sat Oct 19 17:59:28 2019 +0200 @@ -1368,7 +1368,7 @@ function class_prototype.list:get_reference_selector( ref_name, options, ref_alias, back_ref_alias ) - local ref_info = self._class.references[ref_name] + local ref_info = self._class:get_reference(ref_name) if not ref_info then error('Reference with name "' .. ref_name .. '" not found.') end