mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-15 00:54:41 +00:00
(mvc) issue with validation on empty fields
This commit is contained in:
parent
563a65c546
commit
43a1fe4364
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user