#616: The string validator should use the for="min" error instead of the generic
one  when the argument was not set
-----------------------------------------------+----------------------------
 Reporter:  dominik                            |        Owner:  dominik
     Type:  task                               |       Status:  closed 
 Priority:  normal                             |    Milestone:  0.11.1 
Component:  validation                         |      Version:  0.11.0 
 Severity:  normal                             |   Resolution:  wontfix
 Keywords:  string validator for error notset  |  
-----------------------------------------------+----------------------------
Changes (by david):

  * status:  new => closed
  * resolution:  => wontfix

Comment:

 I disagree. It's two different things. "Please enter a password" is
 something else than "Your password is too short". Especially if it is not
 required, or the decision whether or not to make it required is done
 programmatically. As discussed, this is a wontfix, because
 {{{<error>...</error>}}} and {{{<error for="max">...</error>}}} can be
 used to achieve exactly this behavior. Generic arguments should always be
 used if the required=false condition is not met, and more specific errors
 for other cases.

-- 
Ticket URL: <http://trac.agavi.org/ticket/616#comment:1>
Agavi <http://www.agavi.org/>
An MVC Framework for PHP5


_______________________________________________
Agavi Tickets Mailing List
[email protected]
http://lists.agavi.org/mailman/listinfo/tickets

Reply via email to