diff --git a/application/cmdbabstract.class.inc.php b/application/cmdbabstract.class.inc.php index 4e03b99ba..fe355c873 100644 --- a/application/cmdbabstract.class.inc.php +++ b/application/cmdbabstract.class.inc.php @@ -202,7 +202,7 @@ abstract class cmdbAbstractObject extends CMDBObject { $sDisplayValue = $this->GetAsHTML($sAttCode); } - $aDetails[] = array('label' => MetaModel::GetLabel($sClass, $sAttCode), 'value' => $sDisplayValue); + $aDetails[] = array('label' => ''.MetaModel::GetLabel($sClass, $sAttCode).'', 'value' => $sDisplayValue); } } $sHtml .= $oPage->GetDetails($aDetails); diff --git a/application/uiwizard.class.inc.php b/application/uiwizard.class.inc.php index 257cbcc57..6fd612bf0 100644 --- a/application/uiwizard.class.inc.php +++ b/application/uiwizard.class.inc.php @@ -86,7 +86,7 @@ class UIWizard $oDefaultValuesSet = $oAttDef->GetDefaultValue(/* $oObject->ToArgs() */); // @@@ TO DO: get the object's current value if the object exists $sHTMLValue = cmdbAbstractObject::GetFormElementForField($this->m_oPage, $this->m_sClass, $sAttCode, $oAttDef, $oDefaultValuesSet, '', "att_$iMaxInputId", '', $iOptions, $aArgs); $aFieldsMap["att_$iMaxInputId"] = $sAttCode; - $aDetails[] = array('label' => $oAttDef->GetLabel().$sFieldFlag, 'value' => "$sHTMLValue"); + $aDetails[] = array('label' => ''.$oAttDef->GetLabel().$sFieldFlag.'', 'value' => "$sHTMLValue"); if ($oAttDef->GetValuesDef() != null) { $sJSHandlerCode .= "\toWizardHelper.RequestAllowedValues('$sAttCode');\n";