diff --git a/code/elemental/NumericFieldExtension.php b/code/elemental/NumericFieldExtension.php index fd8e421..14b2ad0 100644 --- a/code/elemental/NumericFieldExtension.php +++ b/code/elemental/NumericFieldExtension.php @@ -13,7 +13,7 @@ class NumericFieldExtension extends Extension { protected function updateValidate(ValidationResult $result) { - if ($this->owner->Value() == 1) { + if ($this->owner->getValue() == 1) { $result->addFieldError($this->owner->getName(), 'This field cannot be 1'); } }