From fa88e0d7e0945f8fcd582511a1e03dcdbf9ff266 Mon Sep 17 00:00:00 2001 From: Mark Guinn Date: Tue, 24 Mar 2015 15:24:50 +0000 Subject: [PATCH] Fixed compatibility issue with latest 3.1.x --- code/PercentageField.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/PercentageField.php b/code/PercentageField.php index 72df597..afddcd3 100644 --- a/code/PercentageField.php +++ b/code/PercentageField.php @@ -16,7 +16,7 @@ public function Type() { return 'percentage numeric text'; } - public function setValue($val) { + public function setValue($val, $data = array()) { if (strpos($val, '%') !== false || (double)$val > 1 || (double)$val < -1) { $val = (double)$val / 100.0; } @@ -31,4 +31,4 @@ public function dataValue() { public function Value() { return ($this->dataValue() * 100.0) . '%'; } -} \ No newline at end of file +}