You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ofbiz.apache.org by "Christian Carlow (JIRA)" <ji...@apache.org> on 2015/06/23 15:37:00 UTC

[jira] [Updated] (OFBIZ-6526) ordermgr/control/searchorders findOrders service returns incorrect orderCount and therefore viewSize

     [ https://issues.apache.org/jira/browse/OFBIZ-6526?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Christian Carlow updated OFBIZ-6526:
------------------------------------
    Attachment: OFBIZ-6526.patch

This patch replaces the HashSet with LinkedHashSet for fieldsToSelect because otherwise statusId was being added to the front of the set which was then passed to count distinct query causing incorrect counts.  LinkedHashSet preserves the order in which items are added so orderId always appears at the front of the set for the count distinct query.

> ordermgr/control/searchorders findOrders service returns incorrect orderCount and therefore viewSize
> ----------------------------------------------------------------------------------------------------
>
>                 Key: OFBIZ-6526
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-6526
>             Project: OFBiz
>          Issue Type: Bug
>          Components: order
>    Affects Versions: Trunk
>            Reporter: Christian Carlow
>         Attachments: OFBIZ-6526.patch
>
>




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)