mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-24 11:08:45 +02:00
N°2443 - Boolean don't accept yes/no value (#645)
AttributeBoolean form field edition is now handled by list or radio
This commit is contained in:
@@ -3572,6 +3572,19 @@ class AttributeBoolean extends AttributeInteger
|
||||
{
|
||||
return CMDBChangeOpSetAttributeScalar::class;
|
||||
}
|
||||
|
||||
public function GetAllowedValues($aArgs = array(), $sContains = '') : array
|
||||
{
|
||||
return [
|
||||
0 => $this->GetValueLabel(false),
|
||||
1 => $this->GetValueLabel(true)
|
||||
];
|
||||
}
|
||||
|
||||
public function GetDisplayStyle()
|
||||
{
|
||||
return $this->GetOptional('display_style', 'select');
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user