#1044: Regression: empty arguments that weren't validated remain in request data
------------------------+---------------------------------------------------
Reporter: david | Owner: dominik
Type: defect | Status: new
Priority: normal | Milestone: 1.0
Component: validation | Version: 1.0.0beta8
Severity: normal | Keywords:
Has_patch: 0 |
------------------------+---------------------------------------------------
Example:
{{{
#!xml
<validator class="string" required="false">
<arguments>
<argument>optional</argument>
</arguments>
<errors>
<error></error>
</errors>
</validator>
}}}
"optional" will remain in request data if it's empty ever since [3800],
where change [3792] was merged alongside others. The motivation for this
was allowing users to query for {{{NOT_PROCESSED}}} states, too.
However, {{{AgaviValidationReport:: getSucceededArguments()}}} now returns
those, too, and needs to be fixed accordingly.
However, fixing that would mean that exported values would be purged from
the request data, too, which means their argument result needs to be set
to {{{SUCCESS}}} instead of the current {{{NOT_PROCESSED}}}
--
Ticket URL: <http://trac.agavi.org/ticket/1044>
Agavi <http://www.agavi.org/>
An MVC Framework for PHP5
_______________________________________________
Agavi Tickets Mailing List
[email protected]
http://lists.agavi.org/mailman/listinfo/tickets