#1020: Throw named error if "required" condition is not satisfied in validators
------------------------+---------------------------------------------------
Reporter: david | Owner: dominik
Type: task | Status: new
Priority: normal | Milestone: 1.0
Component: validation | Version: 1.0.0beta7
Severity: normal | Keywords:
Has_patch: 0 |
------------------------+---------------------------------------------------
Right now, validators simply throw a "generic" error if they are set to
{{{required}}} (the default) and the validator's argument is empty.
That makes it hard to check for this specific situation or to produce
error messages specifically for that case.
Thus, the error name for this condition should be set explicitly when the
(base) validator throws an error in this situation; using
{{{required}}} for that name would be the most logical choice
--
Ticket URL: <http://trac.agavi.org/ticket/1020>
Agavi <http://www.agavi.org/>
An MVC Framework for PHP5
_______________________________________________
Agavi Tickets Mailing List
[email protected]
http://lists.agavi.org/mailman/listinfo/tickets