Commit c142b2a0 authored by Ad Schellevis's avatar Ad Schellevis Committed by Franco Fichtner

(mvc) empty() <> ""

(cherry picked from commit 78366339)
parent 287f0a3a
...@@ -275,7 +275,7 @@ abstract class BaseField ...@@ -275,7 +275,7 @@ abstract class BaseField
public function setValue($value) public function setValue($value)
{ {
// if first set, store initial value // if first set, store initial value
if ($this->internalInitialValue === false && !empty($value)) { if ($this->internalInitialValue === false && $value != "") {
$this->internalInitialValue = $value; $this->internalInitialValue = $value;
} }
$this->internalValue = $value; $this->internalValue = $value;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment