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 8de9f89103 Fixed: getSystemInfoStatus open communication events 
condition (OFBIZ-13551)
8de9f89103 is described below

commit 8de9f89103590720b814a11ccfb7cec6a3d71e6c
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) {

Reply via email to