This is an automated email from the ASF dual-hosted git repository.
mridulpathak pushed a commit to branch release24.09
in repository https://gitbox.apache.org/repos/asf/ofbiz-framework.git
The following commit(s) were added to refs/heads/release24.09 by this push:
new 8fdd4a5e64 Fixed : Child communication event sorting. (OFBIZ-8152)
(#1538)
8fdd4a5e64 is described below
commit 8fdd4a5e64f42f63bd81dcfe2a1ea2feb65f1d74
Author: Rehan Khan <[email protected]>
AuthorDate: Fri Jul 31 20:00:45 2026 +0530
Fixed : Child communication event sorting. (OFBIZ-8152) (#1538)
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>