BaseFormElement: '' is null for now

This commit is contained in:
Thomas Gelf 2018-10-08 06:31:27 +02:00
parent b3afe670c8
commit ba47c39c51
1 changed files with 3 additions and 0 deletions

View File

@ -130,6 +130,9 @@ abstract class BaseFormElement extends BaseHtmlElement
*/
public function setValue($value)
{
if ($value === '') {
$value = null;
}
$this->value = $value;
$this->isValid = null;