Bug Tracker

Opened 14 years ago

Closed 14 years ago

#3431 closed enhancement (fixed)

[validate] validate methods should use 'value' instead of 'element.value' when validating

Reported by: Syko Owned by: joern
Priority: trivial Milestone: 1.3
Component: plugin Version: 1.2.6
Keywords: Cc:
Blocked by: Blocking:


The validation methods are passed 2 parameters: value and element.

Some methods use element.value when validating, instead of the 'value' parameter which prevents nesting those methods in others.

eg. if I wanted to let the user type multiple e-mail addresses separated by a comma I would create a validation method which splits the text apart and then passes each piece to the 'email' validation method.

Validation methods probably weren't meant to be nested but it would be nice to be able to use them whenever possible.

Change History (2)

comment:1 Changed 14 years ago by flesler

Owner: set to joern

comment:2 Changed 14 years ago by scott.gonzal

Resolution: fixed
Status: newclosed

This has already been done in current SVN.

Note: See TracTickets for help on using tickets.