From 1ccff9739f04775c5b576936f0bf96a35fef1448 Mon Sep 17 00:00:00 2001 From: Andrey Kutejko Date: Wed, 13 Mar 2019 21:52:01 +0100 Subject: [PATCH] fix default value --- ipf/form/field/choice.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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')); -- 2.49.0