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 c8723f95fc Fixed: getSystemInfoStatus open communication events
condition (OFBIZ-13551)
c8723f95fc is described below
commit c8723f95fc8ed879981bd09e87e6c4ac352eb49c
Author: Mridul Pathak <[email protected]>
AuthorDate: Thu Sep 10 17:42:58 2026 +0530
Fixed: getSystemInfoStatus open communication events condition (OFBIZ-13551)
- Query communication events where statusId is not equal to
COM_ROLE_COMPLETED rather than equal to it
---
.../apache/ofbiz/commonext/ofbizsetup/SystemInfoServices.groovy | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git
a/applications/commonext/src/main/groovy/org/apache/ofbiz/commonext/ofbizsetup/SystemInfoServices.groovy
b/applications/commonext/src/main/groovy/org/apache/ofbiz/commonext/ofbizsetup/SystemInfoServices.groovy
index 0ce18c33dc..29c386b0c1 100644
---
a/applications/commonext/src/main/groovy/org/apache/ofbiz/commonext/ofbizsetup/SystemInfoServices.groovy
+++
b/applications/commonext/src/main/groovy/org/apache/ofbiz/commonext/ofbizsetup/SystemInfoServices.groovy
@@ -20,6 +20,8 @@ package org.apache.ofbiz.commonext.ofbizsetup
import org.apache.ofbiz.base.util.UtilDateTime
import org.apache.ofbiz.entity.GenericValue
+import org.apache.ofbiz.entity.condition.EntityCondition
+import org.apache.ofbiz.entity.condition.EntityOperator
Map createSystemInfoNote() {
parameters.noteParty = parameters.noteParty ?: userLogin.partyId
@@ -83,8 +85,10 @@ Map getLastSystemInfoNote() {
Map getSystemInfoStatus() {
List systemInfoStatus = []
List comms = from('CommunicationEventAndRole')
- .where(partyId: userLogin.partyId,
- statusId: 'COM_ROLE_COMPLETED')
+ .where(EntityCondition.makeCondition([
+ EntityCondition.makeCondition('partyId',
userLogin.partyId),
+ EntityCondition.makeCondition('statusId',
EntityOperator.NOT_EQUAL, 'COM_ROLE_COMPLETED')
+ ]))
.orderBy('-entryDate')
.queryList()
if (comms) {