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 +}