Merge pull request #1941 from TheFrozenFire/patch-1

Include Zend_Locale_Format
This commit is contained in:
Simon Welsh 2013-05-13 13:12:40 -07:00
commit 1b3f817862

View File

@ -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),