set REQUEST['original_context'] in FormBox if context_method_id is used.
so that we can reach the original context where FormBox is used. also clean up modified REQUEST after rendering the target form.
Showing
-
Owner
@kazuhiko Everything done here with
cell
is wrong from the beginning because as soon as it's set, it's used to get values. Reverting the setting ofcell
in thefinally:
clause does not solve anything: even if you fix things for the caller, it may still bug for the callees.I wish we could have a tree of FormBoxes, of any depth, with a ListBox in some branches. In a project, we have
FormBox(FormBox, ListBox)
:- I don't want the inner FormBox to be rendered with
cell=here
of the outter one. - The ListBox removes
cell
once it's rendered, causing the outter FormBox to crash. Well, here it would be an issue of ListBox, but ListBox inside ListBox is weird.
Similarly but easier to fix:
REQUEST['original_context']
is overridden, which also prevents FormBox inside FormBox ifcontext_method_id
is used in both fields.And the only way to modify/restore REQUEST safely is to manipulate
REQUEST.other
directly for everything. - I don't want the inner FormBox to be rendered with
-
mentioned in merge request !143 (merged)
Please register or sign in to comment