Return-Path: X-Original-To: apmail-ofbiz-commits-archive@www.apache.org Delivered-To: apmail-ofbiz-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E583292DF for ; Wed, 30 Nov 2011 11:06:51 +0000 (UTC) Received: (qmail 27809 invoked by uid 500); 30 Nov 2011 11:06:51 -0000 Delivered-To: apmail-ofbiz-commits-archive@ofbiz.apache.org Received: (qmail 27786 invoked by uid 500); 30 Nov 2011 11:06:51 -0000 Mailing-List: contact commits-help@ofbiz.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ofbiz.apache.org Delivered-To: mailing list commits@ofbiz.apache.org Received: (qmail 27778 invoked by uid 99); 30 Nov 2011 11:06:51 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 30 Nov 2011 11:06:51 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 30 Nov 2011 11:06:50 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 249A223888EA for ; Wed, 30 Nov 2011 11:06:30 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1208380 - in /ofbiz/trunk/applications/party/webapp/partymgr: WEB-INF/actions/party/EditShoppingList.groovy party/editShoppingList.ftl Date: Wed, 30 Nov 2011 11:06:29 -0000 To: commits@ofbiz.apache.org From: hansbak@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20111130110630.249A223888EA@eris.apache.org> Author: hansbak Date: Wed Nov 30 11:06:29 2011 New Revision: 1208380 URL: http://svn.apache.org/viewvc?rev=1208380&view=rev Log: fix shoppinglist to quote error Modified: ofbiz/trunk/applications/party/webapp/partymgr/WEB-INF/actions/party/EditShoppingList.groovy ofbiz/trunk/applications/party/webapp/partymgr/party/editShoppingList.ftl Modified: ofbiz/trunk/applications/party/webapp/partymgr/WEB-INF/actions/party/EditShoppingList.groovy URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/party/webapp/partymgr/WEB-INF/actions/party/EditShoppingList.groovy?rev=1208380&r1=1208379&r2=1208380&view=diff ============================================================================== --- ofbiz/trunk/applications/party/webapp/partymgr/WEB-INF/actions/party/EditShoppingList.groovy (original) +++ ofbiz/trunk/applications/party/webapp/partymgr/WEB-INF/actions/party/EditShoppingList.groovy Wed Nov 30 11:06:29 2011 @@ -66,6 +66,7 @@ if (!shoppingListId) { if (shoppingListId) { shoppingList = delegator.findByPrimaryKey("ShoppingList", [shoppingListId : shoppingListId]); context.shoppingList = shoppingList; + context.shoppingListId = shoppingListId; if (shoppingList) { shoppingListItemTotal = 0.0; @@ -105,10 +106,10 @@ if (shoppingListId) { listSize = 0; if (shoppingListItemDatas) listSize = shoppingListItemDatas.size(); - - lowIndex = viewIndex * viewSize + 1; + + lowIndex = (viewIndex * viewSize) + 1; highIndex = (viewIndex + 1) * viewSize; - + if (highIndex > listSize) { highIndex = listSize; } Modified: ofbiz/trunk/applications/party/webapp/partymgr/party/editShoppingList.ftl URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/party/webapp/partymgr/party/editShoppingList.ftl?rev=1208380&r1=1208379&r2=1208380&view=diff ============================================================================== --- ofbiz/trunk/applications/party/webapp/partymgr/party/editShoppingList.ftl (original) +++ ofbiz/trunk/applications/party/webapp/partymgr/party/editShoppingList.ftl Wed Nov 30 11:06:29 2011 @@ -43,6 +43,7 @@ under the License. + ${uiLabelMap.CommonEdit} <#else> @@ -57,7 +58,13 @@ under the License. @@ -171,7 +178,7 @@ under the License. <#if shoppingListItemDatas?has_content> <#-- Pagination --> <#include "component://common/webcommon/includes/htmlTemplate.ftl"/> - <#assign commonUrl = "editShoppingList?partyId=" + partyId + "&"/> + <#assign commonUrl = "editShoppingList?partyId=" + partyId + "&shoppingListId="+shoppingListId?if_exists+"&"/> <#assign viewIndexFirst = 0/> <#assign viewIndexPrevious = viewIndex - 1/> <#assign viewIndexNext = viewIndex + 1/> @@ -189,7 +196,7 @@ under the License.   <#assign alt_row = false> - <#list shoppingListItemDatas[lowIndex..highIndex-1] as shoppingListItemData> + <#list shoppingListItemDatas[lowIndex-1..highIndex-1] as shoppingListItemData> <#assign shoppingListItem = shoppingListItemData.shoppingListItem> <#assign product = shoppingListItemData.product> <#assign productContentWrapper = Static["org.ofbiz.product.product.ProductContentWrapper"].makeProductContentWrapper(product, request)>