(mvc) issue with validation on empty fields

This commit is contained in:
Ad Schellevis 2015-08-31 16:24:19 +02:00
parent 563a65c546
commit 43a1fe4364

View File

@ -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;