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:
Guillaume Lajarige
2016-03-29 12:33:08 +00:00
parent 2ab12d9d11
commit 2a5ca467fd
8 changed files with 73 additions and 7 deletions

View File

@@ -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;
}
}