Skip to content
This repository has been archived by the owner on May 4, 2020. It is now read-only.

Inconsistent getValidationMessages() #56

Closed
boldt opened this issue Nov 6, 2015 · 3 comments
Closed

Inconsistent getValidationMessages() #56

boldt opened this issue Nov 6, 2015 · 3 comments

Comments

@boldt
Copy link

boldt commented Nov 6, 2015

  • if getValidationMessages('field') is valid, I am getting an empty array: []
  • if getValidationMessages('field') returns a singe message, I am getting a string: "E-Mail" must be a valid email

The data type returned by getValidationMessages should stay the same, e.g. array. Means: even if I get just a singe message, it should be an array: ['"E-Mail" must be a valid email']

@boldt boldt changed the title Inconsitent getValidationMessages() Inconsistent getValidationMessages() Nov 6, 2015
@jurassix
Copy link
Owner

jurassix commented Nov 6, 2015

Yeah this was supposed to be fixed with the last release.
Can you upgrade and let me know?

@boldt
Copy link
Author

boldt commented Nov 9, 2015

Works as expected with the last upgrade. Thanks!

@jurassix
Copy link
Owner

jurassix commented Nov 9, 2015

Thanks for the report!

@jurassix jurassix closed this as completed Nov 9, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants