mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02: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)) {
|
if(!$this->value && !$validator->fieldIsRequired($this->name)) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
require_once THIRDPARTY_PATH."/Zend/Locale/Format.php";
|
||||||
|
|
||||||
$valid = Zend_Locale_Format::isNumber(
|
$valid = Zend_Locale_Format::isNumber(
|
||||||
trim($this->value),
|
trim($this->value),
|
||||||
|
Loading…
Reference in New Issue
Block a user