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

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

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

Nicolas Malin (Jira)

     [ 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)