mirror of
https://github.com/Combodo/iTop.git
synced 2026-05-22 16:52:16 +02:00
N°2677 - Add style definition for enums (Default values)
This commit is contained in:
@@ -5182,9 +5182,9 @@ class AttributeEnum extends AttributeString
|
||||
/**
|
||||
* @param string|null $sValue
|
||||
*
|
||||
* @return \ormStyle
|
||||
* @return \ormStyle|null
|
||||
*/
|
||||
protected function GetStyle(?string $sValue): ormStyle
|
||||
protected function GetStyle(?string $sValue): ?ormStyle
|
||||
{
|
||||
if ($this->IsParam('styled_values')) {
|
||||
$aStyles = $this->Get('styled_values');
|
||||
@@ -5193,7 +5193,11 @@ class AttributeEnum extends AttributeString
|
||||
}
|
||||
}
|
||||
|
||||
return new ormStyle();
|
||||
if ($this->IsParam('default_style')) {
|
||||
return $this->Get('default_style');
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
protected function GetSQLCol($bFullSpec = false)
|
||||
|
||||
Reference in New Issue
Block a user