Fix fields with numeric 0 value considered empty

This commit is contained in:
Giuseppe Criscione 2019-03-04 19:18:08 +01:00
parent 46e65fb363
commit e3bd5b1b9e

View File

@ -39,7 +39,7 @@ class Field extends DataSetter
*/
public function isEmpty()
{
return empty($this->value());
return empty($this->value()) && !is_numeric($this->value());
}
/**