svn commit: r634938 - /ofbiz/trunk/applications/order/script/org/ofbiz/order/shoppinglist/ShoppingListServices.xml

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

svn commit: r634938 - /ofbiz/trunk/applications/order/script/org/ofbiz/order/shoppinglist/ShoppingListServices.xml

bibryam
Author: bibryam
Date: Sat Mar  8 03:58:44 2008
New Revision: 634938

URL: http://svn.apache.org/viewvc?rev=634938&view=rev
Log:
Fixed a trivial issue reported by Bruno Busco in JIRA Issue # OFBIZ-1697 "Unformatted error when an invalid product ID is added to a Shopping List".

Modified:
    ofbiz/trunk/applications/order/script/org/ofbiz/order/shoppinglist/ShoppingListServices.xml

Modified: ofbiz/trunk/applications/order/script/org/ofbiz/order/shoppinglist/ShoppingListServices.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/order/script/org/ofbiz/order/shoppinglist/ShoppingListServices.xml?rev=634938&r1=634937&r2=634938&view=diff
==============================================================================
--- ofbiz/trunk/applications/order/script/org/ofbiz/order/shoppinglist/ShoppingListServices.xml (original)
+++ ofbiz/trunk/applications/order/script/org/ofbiz/order/shoppinglist/ShoppingListServices.xml Sat Mar  8 03:58:44 2008
@@ -118,7 +118,11 @@
         <check-errors/>
 
         <entity-one entity-name="ShoppingList" value-name="shoppingList"/>
-        
+        <entity-one entity-name="Product" value-name="product"/>
+        <if-empty field-name="product">
+            <add-error> <fail-property property="ProductErrorProductNotFound" resource="OrderUiLabels"/> </add-error>
+            <check-errors/>
+        </if-empty>
         <make-value value-name="newEntity" entity-name="ShoppingListItem"/>
         <set from-field="parameters.shoppingListId" field="newEntity.shoppingListId"/>
         <make-next-seq-id value-name="newEntity" seq-field-name="shoppingListItemSeqId" numeric-padding="5"/>