From 94b52f8d9f97c73881bdc5091eed5d5f3ed8eea9 Mon Sep 17 00:00:00 2001 From: Eric Date: Tue, 30 Mar 2021 14:38:24 +0200 Subject: [PATCH] =?UTF-8?q?N=C2=B0580=20-=20Check=20parent=20class=20confi?= =?UTF-8?q?g?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/metamodel.class.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/core/metamodel.class.php b/core/metamodel.class.php index 8bac93de6..bbf80b58b 100644 --- a/core/metamodel.class.php +++ b/core/metamodel.class.php @@ -798,7 +798,12 @@ abstract class MetaModel self::_check_subclass($sClass); if (!isset(self::$m_aClassParams[$sClass]["name_complement_for_select"])) { - return array($sClass, array()); + $sParentClass = static::GetParentClass($sClass); + if (is_null($sParentClass)) { + return array($sClass, array()); + } else { + return static::GetComplementAttributeSpec($sParentClass); + } } $nameRawSpec = self::$m_aClassParams[$sClass]["name_complement_for_select"]; if (is_array($nameRawSpec))