#97: Clarify/Fix "global" environment of response elements wrt 'act'/'action'
variables
------------------------+---------------------------------------------------
Reporter: jcaffaro | Owner: skaplun
Type: defect | Status: new
Priority: major | Milestone: v1.0
Component: WebSubmit | Version:
Resolution: | Keywords:
------------------------+---------------------------------------------------
Comment (by skaplun):
Actually act corresponds to the submssion "action", and is passed
correctly to response elements when directly used by WebSubmit engine
(i.e. in "interface").
However, in "endaction", when print_function_calls, "act" is deliberately
assigned to "action".
Therefore WebSubmit functions "will see" a global variable called
"action". However "Create_Modify_Interface" is mistakenly preparing the
global variables by propagating this "action" to the response elements
(instead of "act").
Thus response elements find themselves lost (because if in SBI they would
find the action in "act" in MBI they would find it in "action".
I propose here for backward compatibility to simply have both variable set
to both WebSubmit Functions and Response Elements, having the same value,
i.e. the current websubmit action.
--
Ticket URL: <http://invenio-software.org/ticket/97#comment:2>
Invenio <http://invenio-software.org>