From 8547c5c333dc649d94ebb56309286ac3ccd44826 Mon Sep 17 00:00:00 2001 From: Sam Minnee Date: Mon, 19 Nov 2007 01:15:05 +0000 Subject: [PATCH] parents-merge 33148 - Fixed decimal saving git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@45040 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- core/model/fieldtypes/Decimal.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/model/fieldtypes/Decimal.php b/core/model/fieldtypes/Decimal.php index fba5befff..2cb2e4d7f 100644 --- a/core/model/fieldtypes/Decimal.php +++ b/core/model/fieldtypes/Decimal.php @@ -26,7 +26,7 @@ class Decimal extends DBField { DB::requireField($this->tableName, $this->name, "decimal($this->wholeSize,$this->decimalSize)"); } - function saveInto() { + function saveInto($dataObject) { $fieldName = $this->name; if($fieldName) { $dataObject->$fieldName = (float)preg_replace('/[^0-9.]/', '', $this->value);