Author: adityasharma
Date: Mon Jul 30 07:30:13 2018
New Revision: 1837028
URL:
http://svn.apache.org/viewvc?rev=1837028&view=revLog:
Improved: Add Option to update Facility Party Role on Edit Facility Party Role screen.
(OFBIZ-9085)
Used response type as 'view' instead of 'request-redirect' for error. As commented by Deepak Dixit on dev mailing list 'In case of error, we need to use view or request as response type as if we use request-redirect we need to redirect all the form parameter along with error messages.'
Thanks Deepak for the heads up.
Modified:
ofbiz/ofbiz-framework/trunk/applications/product/webapp/facility/WEB-INF/controller.xml
Modified: ofbiz/ofbiz-framework/trunk/applications/product/webapp/facility/WEB-INF/controller.xml
URL:
http://svn.apache.org/viewvc/ofbiz/ofbiz-framework/trunk/applications/product/webapp/facility/WEB-INF/controller.xml?rev=1837028&r1=1837027&r2=1837028&view=diff==============================================================================
--- ofbiz/ofbiz-framework/trunk/applications/product/webapp/facility/WEB-INF/controller.xml (original)
+++ ofbiz/ofbiz-framework/trunk/applications/product/webapp/facility/WEB-INF/controller.xml Mon Jul 30 07:30:13 2018
@@ -374,9 +374,7 @@ under the License.
<response name="success" type="request-redirect" value="EditFacilityParties">
<redirect-parameter name="facilityId"/>
</response>
- <response name="error" type="request-redirect" value="EditFacilityParties">
- <redirect-parameter name="facilityId"/>
- </response>
+ <response name="error" type="view" value="EditFacilityParties"/>
</request-map>
<request-map uri="removePartyFromFacility">
<security https="true" auth="true"/>