mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
Merge pull request #1941 from TheFrozenFire/patch-1
Include Zend_Locale_Format
This commit is contained in:
commit
1b3f817862
@ -17,6 +17,8 @@ class NumericField extends TextField {
|
||||
if(!$this->value && !$validator->fieldIsRequired($this->name)) {
|
||||
return true;
|
||||
}
|
||||
|
||||
require_once THIRDPARTY_PATH."/Zend/Locale/Format.php";
|
||||
|
||||
$valid = Zend_Locale_Format::isNumber(
|
||||
trim($this->value),
|
||||
|
Loading…
x
Reference in New Issue
Block a user