From ba47c39c5142e80bd07237936517fc1186aa8c30 Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Mon, 8 Oct 2018 06:31:27 +0200 Subject: [PATCH] BaseFormElement: '' is null for now --- library/vendor/ipl/Html/FormElement/BaseFormElement.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/library/vendor/ipl/Html/FormElement/BaseFormElement.php b/library/vendor/ipl/Html/FormElement/BaseFormElement.php index 8e7ba602..db50241b 100644 --- a/library/vendor/ipl/Html/FormElement/BaseFormElement.php +++ b/library/vendor/ipl/Html/FormElement/BaseFormElement.php @@ -130,6 +130,9 @@ abstract class BaseFormElement extends BaseHtmlElement */ public function setValue($value) { + if ($value === '') { + $value = null; + } $this->value = $value; $this->isValid = null;