mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-23 10:38: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:
@@ -2609,6 +2609,13 @@ JS
|
||||
$iFieldSize = $oAttDef->GetMaxSize();
|
||||
if ($aAllowedValues !== null)
|
||||
{
|
||||
|
||||
// convert AttributeBoolean value due to issue with radio style when value is false
|
||||
// @see N°2443 - Boolean don't accept yes/no value
|
||||
if($oAttDef instanceof AttributeBoolean){
|
||||
$value = $value === false ? 0 : 1;
|
||||
}
|
||||
|
||||
// Discrete list of values, use a SELECT or RADIO buttons depending on the config
|
||||
$sDisplayStyle = $oAttDef->GetDisplayStyle();
|
||||
switch ($sDisplayStyle)
|
||||
|
||||
Reference in New Issue
Block a user