This is an automated email from the ASF dual-hosted git repository.

mridulpathak pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/ofbiz-framework.git


The following commit(s) were added to refs/heads/trunk by this push:
     new 6c00b8c75e Fixed: Child communication event sorting (OFBIZ-8152) 
(#1537)
6c00b8c75e is described below

commit 6c00b8c75e0d80e1118e85226f7eb5e4548790f0
Author: Rehan Khan <[email protected]>
AuthorDate: Fri Jul 31 20:00:30 2026 +0530

    Fixed: Child communication event sorting (OFBIZ-8152) (#1537)
    
    Fixed: Child communication event sorting
    (OFBIZ-8152)
    
    Explanation: The child-event sort parameter was incorrectly reused by
    the Customer Request List. Additionally, the child-event query used
    CommunicationEvent, while the form contains sortable fields from
    CommunicationEventAndRole.
    
    Thanks:
    Ravi Lodhi for reporting the issue.
---
 applications/order/widget/ordermgr/CustRequestForms.xml          | 2 +-
 applications/party/widget/partymgr/CommunicationEventScreens.xml | 4 +++-
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/applications/order/widget/ordermgr/CustRequestForms.xml 
b/applications/order/widget/ordermgr/CustRequestForms.xml
index 8d09922e05..6779706cba 100644
--- a/applications/order/widget/ordermgr/CustRequestForms.xml
+++ b/applications/order/widget/ordermgr/CustRequestForms.xml
@@ -107,7 +107,7 @@ under the License.
             <service service-name="performFind" result-map="result" 
result-map-list="listIt">
                 <field-map field-name="inputFields" from-field="parameters"/>
                 <field-map field-name="entityName" from-field="entityName"/>
-                <field-map field-name="orderBy" 
from-field="parameters.sortField"/>
+                <field-map field-name="orderBy" 
from-field="parameters.custRequestSortField"/>
                 <field-map field-name="viewIndex" from-field="viewIndex"/>
                 <field-map field-name="viewSize" from-field="viewSize"/>
             </service>
diff --git a/applications/party/widget/partymgr/CommunicationEventScreens.xml 
b/applications/party/widget/partymgr/CommunicationEventScreens.xml
index d6dc89e8a5..743c1e3afa 100644
--- a/applications/party/widget/partymgr/CommunicationEventScreens.xml
+++ b/applications/party/widget/partymgr/CommunicationEventScreens.xml
@@ -463,8 +463,10 @@ under the License.
                     </screenlet>
                     <section>
                         <actions>
-                            <entity-and entity-name="CommunicationEvent" 
list="commEvents">
+                            <set field="parameters.sortField" 
from-field="parameters.sortField" default-value="-entryDate"/>
+                            <entity-and 
entity-name="CommunicationEventAndRole" list="commEvents">
                                 <field-map field-name="parentCommEventId" 
from-field="parameters.communicationEventId"/>
+                                <order-by 
field-name="${parameters.sortField}"/>
                             </entity-and>
                         </actions>
                         <widgets>

Reply via email to