From 76bdc6b05962783c28fe62daebf196928a763af0 Mon Sep 17 00:00:00 2001 From: Steve Boyd Date: Tue, 14 Jan 2025 16:17:12 +1300 Subject: [PATCH] API Rename FormField Value to getFormattedValue --- code/elemental/NumericFieldExtension.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'); } }