Author: mor
Date: Mon Mar 14 06:38:42 2011
New Revision: 1081268
URL:
http://svn.apache.org/viewvc?rev=1081268&view=revLog:
Bug fix - The system should display the Edit screen when user sucessfully add a new price rule.
Modified:
ofbiz/trunk/applications/product/webapp/catalog/WEB-INF/actions/price/EditProductPriceRules.groovy
ofbiz/trunk/applications/product/webapp/catalog/WEB-INF/controller.xml
Modified: ofbiz/trunk/applications/product/webapp/catalog/WEB-INF/actions/price/EditProductPriceRules.groovy
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/product/webapp/catalog/WEB-INF/actions/price/EditProductPriceRules.groovy?rev=1081268&r1=1081267&r2=1081268&view=diff==============================================================================
--- ofbiz/trunk/applications/product/webapp/catalog/WEB-INF/actions/price/EditProductPriceRules.groovy (original)
+++ ofbiz/trunk/applications/product/webapp/catalog/WEB-INF/actions/price/EditProductPriceRules.groovy Mon Mar 14 06:38:42 2011
@@ -26,6 +26,11 @@ context.condOperEnums = delegator.findLi
context.productPriceActionTypes = delegator.findList("ProductPriceActionType", null, null, ['description'], null, true);
String priceRuleId = request.getParameter("productPriceRuleId");
+
+if (!priceRuleId) {
+ priceRuleId = parameters.get("productPriceRuleId");
+}
+
if (priceRuleId) {
productPriceRules = [];
productPriceRules.add(delegator.findOne("ProductPriceRule", [productPriceRuleId : priceRuleId], false));
Modified: ofbiz/trunk/applications/product/webapp/catalog/WEB-INF/controller.xml
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/product/webapp/catalog/WEB-INF/controller.xml?rev=1081268&r1=1081267&r2=1081268&view=diff==============================================================================
--- ofbiz/trunk/applications/product/webapp/catalog/WEB-INF/controller.xml (original)
+++ ofbiz/trunk/applications/product/webapp/catalog/WEB-INF/controller.xml Mon Mar 14 06:38:42 2011
@@ -1814,7 +1814,7 @@ under the License.
<request-map uri="createProductPriceRule">
<security https="true" auth="true"/>
<event type="service" path="" invoke="createProductPriceRule"/>
- <response name="success" type="view" value="FindPriceRules"/>
+ <response name="success" type="view" value="EditProductPriceRules"/>
<response name="error" type="view" value="FindPriceRules"/>
</request-map>
<request-map uri="updateProductPriceRule">