mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-23 02:28:44 +02:00
Fix regression introduced in bugfix 1554 and detected by unit tests
This commit is contained in:
@@ -915,6 +915,10 @@ class ScalarExpression extends UnaryExpression
|
||||
|
||||
$aValue['label'] = $oObj->Get("friendlyname");
|
||||
}
|
||||
else
|
||||
{
|
||||
$aValue['label'] = Dict::S('Enum:Undefined');
|
||||
}
|
||||
}
|
||||
catch (Exception $e)
|
||||
{
|
||||
@@ -931,6 +935,10 @@ class ScalarExpression extends UnaryExpression
|
||||
$oObj = MetaModel::GetObject($sTarget, $this->GetValue(), true, true);
|
||||
$aValue['label'] = $oObj->Get("friendlyname");
|
||||
}
|
||||
else
|
||||
{
|
||||
$aValue['label'] = Dict::S('Enum:Undefined');
|
||||
}
|
||||
}
|
||||
catch (Exception $e)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user