Fix regression introduced in bugfix 1554 and detected by unit tests

This commit is contained in:
Eric
2018-09-06 14:20:03 +02:00
parent d6a564a38b
commit 34c68cfef0

View File

@@ -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)
{