svn commit: r1147287 - /ofbiz/trunk/applications/order/src/org/ofbiz/order/shoppinglist/ShoppingListEvents.java

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

svn commit: r1147287 - /ofbiz/trunk/applications/order/src/org/ofbiz/order/shoppinglist/ShoppingListEvents.java

mor-2
Author: mor
Date: Fri Jul 15 19:17:03 2011
New Revision: 1147287

URL: http://svn.apache.org/viewvc?rev=1147287&view=rev
Log:
Formatting changes only.

Modified:
    ofbiz/trunk/applications/order/src/org/ofbiz/order/shoppinglist/ShoppingListEvents.java

Modified: ofbiz/trunk/applications/order/src/org/ofbiz/order/shoppinglist/ShoppingListEvents.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/order/src/org/ofbiz/order/shoppinglist/ShoppingListEvents.java?rev=1147287&r1=1147286&r2=1147287&view=diff
==============================================================================
--- ofbiz/trunk/applications/order/src/org/ofbiz/order/shoppinglist/ShoppingListEvents.java (original)
+++ ofbiz/trunk/applications/order/src/org/ofbiz/order/shoppinglist/ShoppingListEvents.java Fri Jul 15 19:17:03 2011
@@ -373,14 +373,14 @@ public class ShoppingListEvents {
         GenericValue list = null;
         // TODO: add sorting, just in case there are multiple...
         if (partyId != null) {
-        Map<String, Object> findMap = UtilMisc.<String, Object>toMap("partyId", partyId, "productStoreId", productStoreId, "shoppingListTypeId", "SLT_SPEC_PURP", "listName", PERSISTANT_LIST_NAME);
-        List<GenericValue> existingLists = delegator.findByAnd("ShoppingList", findMap);
-        Debug.logInfo("Finding existing auto-save shopping list with:  \nfindMap: " + findMap + "\nlists: " + existingLists, module);
-
-        if (existingLists != null && !existingLists.isEmpty()) {
-            list = EntityUtil.getFirst(existingLists);
-            autoSaveListId = list.getString("shoppingListId");
-        }
+            Map<String, Object> findMap = UtilMisc.<String, Object>toMap("partyId", partyId, "productStoreId", productStoreId, "shoppingListTypeId", "SLT_SPEC_PURP", "listName", PERSISTANT_LIST_NAME);
+            List<GenericValue> existingLists = delegator.findByAnd("ShoppingList", findMap);
+            Debug.logInfo("Finding existing auto-save shopping list with:  \nfindMap: " + findMap + "\nlists: " + existingLists, module);
+    
+            if (existingLists != null && !existingLists.isEmpty()) {
+                list = EntityUtil.getFirst(existingLists);
+                autoSaveListId = list.getString("shoppingListId");
+            }
         }
         if (list == null && dispatcher != null) {
             Map<String, Object> listFields = UtilMisc.<String, Object>toMap("userLogin", userLogin, "productStoreId", productStoreId, "shoppingListTypeId", "SLT_SPEC_PURP", "listName", PERSISTANT_LIST_NAME);