From: Andrey Kutejko Date: Wed, 13 Mar 2019 20:52:01 +0000 (+0100) Subject: fix default value X-Git-Tag: 0.6 X-Git-Url: https://git.andy128k.dev/?a=commitdiff_plain;h=1ccff9739f04775c5b576936f0bf96a35fef1448;p=ipf.git fix default value --- diff --git a/ipf/form/field/choice.php b/ipf/form/field/choice.php index 368caf0..10457e1 100644 --- a/ipf/form/field/choice.php +++ b/ipf/form/field/choice.php @@ -9,7 +9,7 @@ class IPF_Form_Field_Choice extends IPF_Form_Field { parent::clean($value); if (in_array($value, $this->empty_values)) { - return ''; + return null; } if (!$this->validValue($value)) throw new IPF_Exception_Form(__('Invalid choice'));