Added missing Decimal->nullValue method.

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.3@70090 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Hayden Smith 2009-01-13 20:39:58 +00:00 committed by Sam Minnee
parent 34f1af1396
commit 2c9ed2dfcc

View File

@ -40,6 +40,10 @@ class Decimal extends DBField {
public function scaffoldFormField($title = null, $params = null) {
return new NumericField($this->name, $title);
}
public function nullValue() {
return "0.00";
}
/**
* Return an encoding of the given value suitable for inclusion in a SQL statement.