Author: jleroux
Date: Thu May 9 19:46:07 2019
New Revision: 1859033
URL:
http://svn.apache.org/viewvc?rev=1859033&view=revLog:
Fixed: Update invoice item looses invoice context
(OFBIZ-)
When clicking the "update" button on an invoice item the context to the
invoice (invoiceId) is lost. The result is an empty form to add a new invoice
item without invoice context.
Go to /accounting/control/listInvoiceItems?invoiceId=demo10001
Click on "update" below the existing items.
You will then be redirect to /accounting/control/listInvoiceItems
(without invoiceId). You will not see the invoice items as the context to the
invoice is gone.
jleroux: the same existed for budget items. As Ingo mentioned:
<<It was broken by OFBIZ-9997:
Replace request-redirect w/ no redirect-param attribute
by request-redirect-noparam>>
Now we need to check all changes done for OFBIZ-9997
Thanks: Ingo Wolfmayr for report and fix proposition
Modified:
ofbiz/ofbiz-framework/trunk/applications/accounting/webapp/accounting/WEB-INF/controller.xml
Modified: ofbiz/ofbiz-framework/trunk/applications/accounting/webapp/accounting/WEB-INF/controller.xml
URL:
http://svn.apache.org/viewvc/ofbiz/ofbiz-framework/trunk/applications/accounting/webapp/accounting/WEB-INF/controller.xml?rev=1859033&r1=1859032&r2=1859033&view=diff==============================================================================
--- ofbiz/ofbiz-framework/trunk/applications/accounting/webapp/accounting/WEB-INF/controller.xml (original)
+++ ofbiz/ofbiz-framework/trunk/applications/accounting/webapp/accounting/WEB-INF/controller.xml Thu May 9 19:46:07 2019
@@ -194,7 +194,7 @@ under the License.
<request-map uri="updateInvoiceItem">
<security https="true" auth="true"/>
<event type="service-multi" invoke="updateInvoiceItem"/>
- <response name="success" type="request-redirect-noparam" value="listInvoiceItems"/>
+ <response name="success" type="request-redirect" value="listInvoiceItems"/>
<response name="error" type="view" value="listInvoiceItems"/>
</request-map>
<request-map uri="removeInvoiceItem">
@@ -1104,7 +1104,7 @@ under the License.
<request-map uri="updateBudgetItem">
<security https="true" auth="true"/>
<event type="service-multi" invoke="updateBudgetItem"/>
- <response name="success" type="request-redirect-noparam" value="EditBudgetItems"/>
+ <response name="success" type="request-redirect" value="EditBudgetItems"/>
<response name="error" type="view" value="EditBudgetItems"/>
</request-map>
<request-map uri="removeBudgetItem">