From a8f404421f3e404ccd285da861a8cb25f3642f31 Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Thu, 14 Jan 2016 20:40:31 -0500 Subject: Fix bug: unable to set currency rate with Postgres --- app/Validator/CurrencyValidator.php | 1 + 1 file changed, 1 insertion(+) (limited to 'app/Validator') diff --git a/app/Validator/CurrencyValidator.php b/app/Validator/CurrencyValidator.php index a00af738..ee191523 100644 --- a/app/Validator/CurrencyValidator.php +++ b/app/Validator/CurrencyValidator.php @@ -25,6 +25,7 @@ class CurrencyValidator extends Base $v = new Validator($values, array( new Validators\Required('currency', t('Field required')), new Validators\Required('rate', t('Field required')), + new Validators\Numeric('rate', t('This value must be numeric')), )); return array( -- cgit v1.2.3