[
https://issues.apache.org/jira/browse/OFBIZ-4957?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13410046#comment-13410046
]
Ankit Jain commented on OFBIZ-4957:
-----------------------------------
Jacques,
In the groovy EditShoppingList.groovy the value of lowIndex is 0 thats why in
the ftl we should use lowIndex instead of lowIndex-1.
Thats why its throwing error
Negative starting index for range, is lowIndex-1..highIndex-1
> Error on Shopping List Page
> ---------------------------
>
> Key: OFBIZ-4957
> URL: https://issues.apache.org/jira/browse/OFBIZ-4957
> Project: OFBiz
> Issue Type: Bug
> Components: party
> Affects Versions: SVN trunk
> Reporter: Ankit Jain
> Priority: Trivial
> Fix For: SVN trunk
>
> Attachments: OFBIZ-4957.patch
>
>
> On the Shopping List page
> https://demo-trunk.ofbiz.apache.org:8443/partymgr/control/addItemToShoppingList/editShoppingList
> its throwing error
> on line 199, column 38 in
> component://party/webapp/partymgr/party/editShoppingList.ftl Negative
> starting index for range, is lowIndex-1..highIndex-1 The problematic
> instruction: ---------- ==> list
> shoppingListItemDatas[lowIndex-1..highIndex-1] as shoppingListItemData [on
> line 199, column 9 in
> component://party/webapp/partymgr/party/editShoppingList.ftl] ---------- Java
> backtrace for programmers: ---------- freemarker.template.TemplateException:
> on line 199, column 38 in
> component://party/webapp/partymgr/party/editShoppingList.ftl Negative
> starting index for range, is lowIndex-1..highIndex-1 at
> freemarker.core.DynamicKeyName.dealWithRangeKey(DynamicKeyName.java:157) at
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira