Cast value to string before validating
* src/validate/BucketDataValidator.js (_forEach): Cast data to string before passing to formatter, which expects a string.master
parent
37cb6716de
commit
0401860377
|
@ -257,7 +257,8 @@ module.exports = Class( 'BucketDataValidator',
|
||||||
// format return values for display
|
// format return values for display
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
ret[ i ] = fmt[ method ].call( fmt, value );
|
// validators expect strings
|
||||||
|
ret[ i ] = fmt[ method ].call( fmt, ''+value );
|
||||||
}
|
}
|
||||||
catch ( e )
|
catch ( e )
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue