svn commit: r465150 - in /incubator/ofbiz/trunk/applications: ecommerce/webapp/ecommerce/WEB-INF/ product/config/ product/script/org/ofbiz/product/product/

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

svn commit: r465150 - in /incubator/ofbiz/trunk/applications: ecommerce/webapp/ecommerce/WEB-INF/ product/config/ product/script/org/ofbiz/product/product/

jleroux@apache.org
Author: jleroux
Date: Tue Oct 17 22:39:03 2006
New Revision: 465150

URL: http://svn.apache.org/viewvc?view=rev&rev=465150
Log:
Patch from Scott Gray : "review submission should subsequently display a 'thanks for submitting this' page." (https://issues.apache.org/jira/browse/OFBIZ-16)
Thanks Scott

Modified:
    incubator/ofbiz/trunk/applications/ecommerce/webapp/ecommerce/WEB-INF/controller.xml
    incubator/ofbiz/trunk/applications/product/config/ProductUiLabels.properties
    incubator/ofbiz/trunk/applications/product/config/ProductUiLabels_fr.properties
    incubator/ofbiz/trunk/applications/product/script/org/ofbiz/product/product/ProductServices.xml

Modified: incubator/ofbiz/trunk/applications/ecommerce/webapp/ecommerce/WEB-INF/controller.xml
URL: http://svn.apache.org/viewvc/incubator/ofbiz/trunk/applications/ecommerce/webapp/ecommerce/WEB-INF/controller.xml?view=diff&rev=465150&r1=465149&r2=465150
==============================================================================
--- incubator/ofbiz/trunk/applications/ecommerce/webapp/ecommerce/WEB-INF/controller.xml (original)
+++ incubator/ofbiz/trunk/applications/ecommerce/webapp/ecommerce/WEB-INF/controller.xml Tue Oct 17 22:39:03 2006
@@ -619,7 +619,7 @@
         <security https="false" auth="true"/>
         <event type="service" invoke="createProductReview"/>
         <response name="success" type="view" value="product"/>
-        <response name="error" type="view" value="product"/>
+        <response name="error" type="view" value="productReview"/>
     </request-map>
 
     <request-map uri="advancedsearch">

Modified: incubator/ofbiz/trunk/applications/product/config/ProductUiLabels.properties
URL: http://svn.apache.org/viewvc/incubator/ofbiz/trunk/applications/product/config/ProductUiLabels.properties?view=diff&rev=465150&r1=465149&r2=465150
==============================================================================
--- incubator/ofbiz/trunk/applications/product/config/ProductUiLabels.properties (original)
+++ incubator/ofbiz/trunk/applications/product/config/ProductUiLabels.properties Tue Oct 17 22:39:03 2006
@@ -434,6 +434,7 @@
 ProductCreateProductFeatureInThisCategory=Create Product Feature in This Category
 ProductCreateProductInCategory=Create Product in Category
 ProductCreateProductInCategoryCheckExisting=Create Product in Category Check Existing
+ProductCreateProductReviewSuccess=Thank you, your review was successfully submitted.
 ProductCreateProductStoreRole=Create ProductStoreRole
 ProductCreateRule=Create Rule
 ProductCreateVirtualProduct=Create Virtual Product

Modified: incubator/ofbiz/trunk/applications/product/config/ProductUiLabels_fr.properties
URL: http://svn.apache.org/viewvc/incubator/ofbiz/trunk/applications/product/config/ProductUiLabels_fr.properties?view=diff&rev=465150&r1=465149&r2=465150
==============================================================================
--- incubator/ofbiz/trunk/applications/product/config/ProductUiLabels_fr.properties (original)
+++ incubator/ofbiz/trunk/applications/product/config/ProductUiLabels_fr.properties Tue Oct 17 22:39:03 2006
@@ -629,6 +629,7 @@
 ProductCreateProductFeatureInThisCategory=Cr\u00E9eation d'une caract\u00E9ristique dans la cat\u00E9gorie
 ProductCreateProductInCategory=Cr\u00E9ation d'un article dans la cat\u00E9gorie
 ProductCreateProductInCategoryCheckExisting=Cr\u00E9ation de l'article dans la cat\u00E9gorie recherch\u00E9e
+ProductCreateProductReviewSuccess=Merci, votre commentaire a \u00E9t\u00E9 ajout\u00E9
 ProductCreateProductStoreRole=Cr\u00E9ation du r\u00F4le de magasin d'articles
 ProductCreateRule=Cr\u00E9ation d'une r\u00E8gle
 ProductCreateVirtualProduct=Cr\u00E9er un article virtuel

Modified: incubator/ofbiz/trunk/applications/product/script/org/ofbiz/product/product/ProductServices.xml
URL: http://svn.apache.org/viewvc/incubator/ofbiz/trunk/applications/product/script/org/ofbiz/product/product/ProductServices.xml?view=diff&rev=465150&r1=465149&r2=465150
==============================================================================
--- incubator/ofbiz/trunk/applications/product/script/org/ofbiz/product/product/ProductServices.xml (original)
+++ incubator/ofbiz/trunk/applications/product/script/org/ofbiz/product/product/ProductServices.xml Tue Oct 17 22:39:03 2006
@@ -555,6 +555,7 @@
         <create-value value-name="newEntity"/>
 
         <set from-field="newEntity.productId" field="productId"/>
+        <property-to-field resource="ProductUiLabels" property="ProductCreateProductReviewSuccess" field-name="successMessage"/>
         <call-simple-method method-name="updateProductWithReviewRatingAvg"/>
     </simple-method>
     <simple-method method-name="updateProductReview" short-description="Update ProductReview">