summaryrefslogtreecommitdiff
path: root/app/Validator
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2016-01-14 20:40:31 -0500
committerFrederic Guillot <fred@kanboard.net>2016-01-14 20:40:31 -0500
commita8f404421f3e404ccd285da861a8cb25f3642f31 (patch)
tree0af51bfb56546d393ecb1b63be20ab348fd519d6 /app/Validator
parent805be7d33155478ef32c4bd3643dcf4025d85a05 (diff)
Fix bug: unable to set currency rate with Postgres
Diffstat (limited to 'app/Validator')
-rw-r--r--app/Validator/CurrencyValidator.php1
1 files changed, 1 insertions, 0 deletions
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(