mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
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:
parent
34f1af1396
commit
2c9ed2dfcc
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user