Closed (duplicate)
Project:
Drupal core
Version:
x.y.z
Component:
forms system
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
20 Apr 2006 at 05:56 UTC
Updated:
20 Apr 2006 at 14:40 UTC
First, the second box in the password_confirm field does not get highlighted if an error exists on the field. This is fixed by the last change in the patch:
+ form_error($form['pass2']);
Multiple error messages can be displayed for the field if a module performs some validation on the field (such as password length). For example, say the module has a password_confirm field called 'password' and validates on password length. The field is required and no password has been supplied in the first text box. If the module developer chooses to use form_set_error('password', 'Blah') both the 'Blah' message and the required message from password_confirm_validate are displayed.
| Comment | File | Size | Author |
|---|---|---|---|
| form.inc.patch_1.txt | 645 bytes | sammys |
Comments
Comment #1
sammys commentedBumping this to patch (code needs review).
Sammy Spets
Synerger Pty Ltd
http://www.synerger.com
Comment #2
sammys commentedSee http://drupal.org/node/59528 for a better fix for this bug.
Sammy Spets
Synerger Pty Ltd
http://www.synerger.com
Comment #3
chx commentedthen this is a duplicate of that issue.