JacquesLeRoux commented on code in PR #517:
URL: https://github.com/apache/ofbiz-framework/pull/517#discussion_r1147870040


##########
applications/order/groovyScripts/shoppinglist/ShoppingListServices.groovy:
##########
@@ -320,13 +299,20 @@ def addSuggestionsToShoppingList() {
 }
 
 private List<GenericValue> linkProductToShoppingList(String productId, String 
shoppingListId) {
-    from("ProductAssoc")
-            .where(productId: productId,
-                    productAssocTypeId: "PRODUCT_COMPLEMENT")
-            .filterByDate()
-            .queryList().each {
-        run service: "addDistinctShoppingListItem", with: [productId     : 
it.productIdTo,
-                                                           shoppingListId: 
shoppingListId,
-                                                           quantity      : 
(BigDecimal) 1]
+    from('ProductAssoc')
+        .where(productId: productId,
+                productAssocTypeId: 'PRODUCT_COMPLEMENT')
+        .filterByDate()
+        .queryList().each {
+                        run service: 'addDistinctShoppingListItem', with: 
[productId: it.productIdTo,
+                                                                           
shoppingListId: shoppingListId,
+                                                                           
quantity: (BigDecimal) 1]
+        }
+}
+
+private void updateLastAdminModified(GenericValue shoppingList, GenericValue 
userLogin) {

Review Comment:
   Why moving updateLastAdminModified?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@ofbiz.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to