Commit 43a1fe43 authored by Ad Schellevis's avatar Ad Schellevis

(mvc) issue with validation on empty fields

parent 563a65c5
......@@ -250,7 +250,7 @@ abstract class BaseField
public function setValue($value)
{
// if first set, store initial value
if ($this->internalInitialValue === false) {
if ($this->internalInitialValue === false && !empty($value)) {
$this->internalInitialValue = $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