svn commit: r1836908 - /ofbiz/ofbiz-framework/trunk/applications/product/webapp/facility/WEB-INF/controller.xml

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r1836908 - /ofbiz/ofbiz-framework/trunk/applications/product/webapp/facility/WEB-INF/controller.xml

adityasharma
Author: adityasharma
Date: Sat Jul 28 13:31:49 2018
New Revision: 1836908

URL: http://svn.apache.org/viewvc?rev=1836908&view=rev
Log:
Improved: Add Option to update Facility Party Role on Edit Facility Party Role screen.
(OFBIZ-9085)
When using response type as 'view', the url of the page changes to specific request name. Instead of that it is better to use 'request-redirect' to give a better user experience. Hence, changing response type to 'request-redirect'.

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=1836908&r1=1836907&r2=1836908&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 Sat Jul 28 13:31:49 2018
@@ -371,8 +371,12 @@ under the License.
     <request-map uri="updateFacilityParty">
         <security https="true" auth="true"/>
         <event type="service" path="" invoke="updateFacilityParty"/>
-        <response name="success" type="view" value="EditFacilityParties"/>
-        <response name="error" type="view" value="EditFacilityParties"/>
+        <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>
     </request-map>
     <request-map uri="removePartyFromFacility">
         <security https="true" auth="true"/>