Hello Werner,

I fixed it through issue OFBIZ-13258 [1]I'll be available on next release version or you can apply the patch [2] Thanks for this alert.

Nicolas

[1] https://issues.apache.org/jira/browse/OFBIZ-13258
[2] https://github.com/apache/ofbiz-framework/commit/397da35ef1.patch

On 30/05/2025 11:06, Werner Brasch wrote:
Hallo together
Why is it not allowed to change the status-id in CommunicationEvent from NULL 
to any?

Here is the groovy Code from Version 24.09:

GenericValue statusChange = from('StatusValidChange')
         .where(statusId: communicationEvent.statusId,
                 statusIdTo: parameters.statusId)
         .queryOne()
if (!statusChange) {
     logError("Cannot change from ${communicationEventRole.statusId} to 
${parameters.statusId}")
     return error(UtilProperties.getMessage('ProductUiLabels',
                     'commeventservices.communication_event_status', 
parameters.locale as Locale))
}


Greetings
Werner Brasch


Reply via email to