N°1318 - multiple choice in a template - first step

This commit is contained in:
acognet
2023-06-02 09:45:31 +02:00
parent 4264123ef6
commit 6abf65bfb7
16 changed files with 579 additions and 271 deletions

View File

@@ -28,5 +28,16 @@ class MultipleSelectField extends SelectField
{
/** @inheritDoc */
const DEFAULT_MULTIPLE_VALUES_ENABLED = true;
const DEFAULT_STARTS_WITH_NULL_CHOICE = false;
function SetCurrentValue($currentValue)
{
if ($currentValue != null) {
$this->currentValue = $currentValue;
} else {
$this->currentValue = "";
}
return $this;
}
}