Closed (fixed)
Project:
Clientside Validation
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
24 Jun 2013 at 00:26 UTC
Updated:
18 Jul 2013 at 08:51 UTC
The hideErrordiv in the clientside_validation.js script is overzealous. In zen at least (not sure about other themes), a single error message is not written as an unordered list, as a result intializing this hides a single server side error.
It would seem more prudent to only look for messages that this module is responsible for managing. The attached patch scopes the selector to just look at clientside validation error message divs. Works for me in light testing on Chrome only.
| Comment | File | Size | Author |
|---|---|---|---|
| clientside-validation-hides-errors.patch | 654 bytes | fearlsgroove |
Comments
Comment #1
attiks commentedThanks for the patch, but I think we should leave the messages class on it, so the styling stays the same. The removing should be done using the new class.
I'll try to reroll and commit this asap, if you can reroll it that would be great.
Comment #2
fearlsgroove commentedThis patch doesn't change any markup, just the selector used to hide "empty" error messages. Styling should look exactly the same before and after.
Comment #3
jelle_sFixed in the latest dev version. Thanks for the patch!