#707: bug or intended behaviour: Agavi doesn't copy a containers arguments on
createExecutionContainer
----------------------------+-----------------------------------------------
Reporter: [EMAIL PROTECTED] | Owner: david
Type: defect | Status: new
Priority: normal | Milestone:
Component: controller | Version: 0.11.0
Severity: normal | Keywords:
Has_patch: 1 |
----------------------------+-----------------------------------------------
Assume the following execution-flow of an action inside Agavi:[[BR]]- an
action is called with a parameter (e.g. id)[[BR]]- its view creates a slot
and modifies this parameter (id) for the new container[[BR]]- the slots
view forwards to another action
In the forwarded action, id has its original value, not the one passed to
the slot. I don't know if this is intended, but I'd expect the modified
value to be kept modified on every slot-related branch of execution.
The reason for this is that additional or modified arguments for a
container are not copied if it spawns a new container.
A small module showing the behaviour is attached, as well as a patch which
changes createExecutionContainer to copy a containers arguments to every
new child.
Thanks for making Agavi a tremendous framework! [[BR]]Chris
--
Ticket URL: <http://trac.agavi.org/ticket/707>
Agavi <http://www.agavi.org/>
An MVC Framework for PHP5
_______________________________________________
Agavi Tickets Mailing List
[email protected]
http://lists.agavi.org/mailman/listinfo/tickets