Author: jleroux
Date: Thu Feb 26 06:30:57 2015
New Revision: 1662361
URL:
http://svn.apache.org/r1662361Log:
Fixes "Incorrect Error Displayed when "Expiring" a Contact Mechanism" reported by Forrest Rae at
https://issues.apache.org/jira/browse/OFBIZ-6112When expiring a contact mechanism, an incorrect error is displayed. This is mostly an error due to code reuse. There is no reason to redirect back to editcontactmech, instead just redirect to viewprofile.
"The contact information specified does not belong to you, you may not view or edit it."
Repro:
1) Login to
http://demo-stable-ofbiz.apache.org/ecommerce/control/main as DemoCustomer.
2) Navigate to
http://demo-stable-ofbiz.apache.org/ecommerce/control/viewprofile3) Click Expire next to one of the Postal Addresses.
Modified:
ofbiz/trunk/specialpurpose/ecommerce/webapp/ecommerce/WEB-INF/controller.xml
Modified: ofbiz/trunk/specialpurpose/ecommerce/webapp/ecommerce/WEB-INF/controller.xml
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/ecommerce/webapp/ecommerce/WEB-INF/controller.xml?rev=1662361&r1=1662360&r2=1662361&view=diff==============================================================================
--- ofbiz/trunk/specialpurpose/ecommerce/webapp/ecommerce/WEB-INF/controller.xml (original)
+++ ofbiz/trunk/specialpurpose/ecommerce/webapp/ecommerce/WEB-INF/controller.xml Thu Feb 26 06:30:57 2015
@@ -1033,7 +1033,7 @@ under the License.
<request-map uri="deleteContactMech">
<security https="true" auth="true"/>
<event type="service" invoke="deletePartyContactMech"/>
- <response name="success" type="view" value="editcontactmech"/>
+ <response name="success" type="view" value="viewprofile"/>
<response name="error" type="view" value="editcontactmech"/>
</request-map>