webmcp

changeset 542:99a0f1165ef8

Use <db_class>:get_reference(...) instead of <db_class>.references[...]
author jbe
date Sat Oct 19 17:59:28 2019 +0200 (7 months ago)
parents 72e55c2eb63c
children a886e263b534
files libraries/mondelefant/mondelefant.lua
line diff
     1.1 --- a/libraries/mondelefant/mondelefant.lua	Sat Oct 19 15:05:55 2019 +0200
     1.2 +++ b/libraries/mondelefant/mondelefant.lua	Sat Oct 19 17:59:28 2019 +0200
     1.3 @@ -1368,7 +1368,7 @@
     1.4  function class_prototype.list:get_reference_selector(
     1.5    ref_name, options, ref_alias, back_ref_alias
     1.6  )
     1.7 -  local ref_info = self._class.references[ref_name]
     1.8 +  local ref_info = self._class:get_reference(ref_name)
     1.9    if not ref_info then
    1.10      error('Reference with name "' .. ref_name .. '" not found.')
    1.11    end

Impressum / About Us