mirror of
https://github.com/Combodo/iTop.git
synced 2026-05-01 06:28:46 +02:00
Alpha 2.3.0 fixes :
- Multiple request templates on portal - SelectField interface stabilization - UI fixes on portal - Forms updates on lifecycle SVN:trunk[3970]
This commit is contained in:
@@ -30,6 +30,7 @@ use \Combodo\iTop\Form\Field\MultipleChoicesField;
|
||||
*/
|
||||
class SelectField extends MultipleChoicesField
|
||||
{
|
||||
const DEFAULT_MULTIPLE_VALUES_ENABLED = false;
|
||||
const DEFAULT_NULL_CHOICE_LABEL = 'UI:SelectOne';
|
||||
const DEFAULT_STARTS_WITH_NULL_CHOICE = true;
|
||||
|
||||
@@ -75,4 +76,16 @@ class SelectField extends MultipleChoicesField
|
||||
return $aChoices;
|
||||
}
|
||||
|
||||
/**
|
||||
* Overloads the method to prevent changing this property.
|
||||
*
|
||||
* @param boolean $bMultipleValuesEnabled
|
||||
* @return \Combodo\iTop\Form\Field\SelectField
|
||||
*/
|
||||
public function SetMultipleValuesEnabled($bMultipleValuesEnabled)
|
||||
{
|
||||
// We don't allow changing this value
|
||||
return $this;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user