mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-23 18:48:51 +02:00
optimizing the display of the label in FieldsExpression
This commit is contained in:
@@ -1446,7 +1446,7 @@ class FieldExpression extends UnaryExpression
|
||||
|
||||
$oAttDef = MetaModel::GetAttributeDef($sClass, $sAttCode);
|
||||
// Set a default value for the general case
|
||||
$sRes = $oAttDef->GetAsHtml($sValue);
|
||||
$sRes = null;
|
||||
|
||||
// Exceptions...
|
||||
if ($oAttDef->IsExternalKey())
|
||||
@@ -1472,6 +1472,10 @@ class FieldExpression extends UnaryExpression
|
||||
$sRes = Dict::S('UI:UndefinedObject');
|
||||
}
|
||||
}
|
||||
if(is_null($sRes))
|
||||
{
|
||||
$sRes = $oAttDef->GetAsHtml($sValue);
|
||||
}
|
||||
return $sRes;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user