diff --git a/core/dbobject.class.php b/core/dbobject.class.php index b2b2cc5243..a730032d16 100644 --- a/core/dbobject.class.php +++ b/core/dbobject.class.php @@ -2431,9 +2431,12 @@ abstract class DBObject implements iDisplay return $this->m_aCurrValues; } - public function GetCurrentValues() + /* + * return array + */ + public function GetLoadedAttributes() { - return $this->m_aCurrValues; + return array_keys($this->m_aLoadedAtt); } /** diff --git a/sources/Controller/AjaxRenderController.php b/sources/Controller/AjaxRenderController.php index 377f417b2b..80d607c9aa 100644 --- a/sources/Controller/AjaxRenderController.php +++ b/sources/Controller/AjaxRenderController.php @@ -315,7 +315,7 @@ class AjaxRenderController foreach ($aClassAliases as $sAlias => $sClass) { if (isset($aObject[$sAlias])) { $aObj[$sAlias."/_key_"] = $aObject[$sAlias]->GetKey(); - foreach ($aObject[$sAlias]->GetCurrentValues() as $sAttCode => $oAttDef) { + foreach ($aObject[$sAlias]->GetLoadedAttributes() as $sAttCode) { $aObj[$sAlias."/".$sAttCode] = $aObject[$sAlias]->GetAsHTML($sAttCode); } }