mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-23 10:38:45 +02:00
🐛 fix GetAsPlainText() on EnumSet
This commit is contained in:
@@ -10188,8 +10188,13 @@ class AttributeEnumSet extends AttributeSet
|
||||
|
||||
public function GetValueLabel($sValue)
|
||||
{
|
||||
if ($sValue instanceof ormSet)
|
||||
{
|
||||
$sValue = implode(', ', $sValue->GetValues());
|
||||
}
|
||||
|
||||
$aValues = $this->GetRawPossibleValues();
|
||||
if (!empty($aValues) && !empty($sValue) && isset($aValues[$sValue]))
|
||||
if (is_array($aValues) && is_string($sValue) && isset($aValues[$sValue]))
|
||||
{
|
||||
$sValue = $aValues[$sValue];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user