diff --git a/core/dbobject.class.php b/core/dbobject.class.php index 0f49f6640..b2b2cc524 100644 --- a/core/dbobject.class.php +++ b/core/dbobject.class.php @@ -1,20 +1,7 @@ m_bIsInDB) - { + if ($this->m_bIsInDB) { return $this->ListChangedValues($this->m_aCurrValues); } return $this->m_aCurrValues; } + public function GetCurrentValues() + { + return $this->m_aCurrValues; + } + /** * @api * @api-advanced diff --git a/sources/Controller/AjaxRenderController.php b/sources/Controller/AjaxRenderController.php index e22932aed..377f417b2 100644 --- a/sources/Controller/AjaxRenderController.php +++ b/sources/Controller/AjaxRenderController.php @@ -313,13 +313,10 @@ class AjaxRenderController $aResult["data"] = []; while ($aObject = $oSet->FetchAssoc()) { foreach ($aClassAliases as $sAlias => $sClass) { - if (isset($aColumns[$sAlias])) { - foreach ($aColumns[$sAlias] as $sAttCode => $oAttDef) { - if ($sAttCode == "_key_") { - $aObj[$sAlias."/".$sAttCode] = $aObject[$sAlias]->GetKey(); - } else { - $aObj[$sAlias."/".$sAttCode] = $aObject[$sAlias]->GetAsHTML($sAttCode); - } + if (isset($aObject[$sAlias])) { + $aObj[$sAlias."/_key_"] = $aObject[$sAlias]->GetKey(); + foreach ($aObject[$sAlias]->GetCurrentValues() as $sAttCode => $oAttDef) { + $aObj[$sAlias."/".$sAttCode] = $aObject[$sAlias]->GetAsHTML($sAttCode); } } }