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 2644ebde78 Fixed: updatePartyInvitation crashes when auto-deriving the 
invitee name (OFBIZ-13553)
2644ebde78 is described below

commit 2644ebde78c605531336edd4b81c703e9c7fbf8a
Author: Mridul Pathak <[email protected]>
AuthorDate: Tue Sep 8 11:03:00 2026 +0530

    Fixed: updatePartyInvitation crashes when auto-deriving the invitee name 
(OFBIZ-13553)
    
    updatePartyInvitation referenced an undeclared newEntity variable, 
belonging to the sibling createPartyInvitation method, instead of its own 
lookedUpValue, throwing MissingPropertyException on every call that supplies 
partyId with an empty toName.
---
 .../groovy/org/apache/ofbiz/party/party/PartyInvitationServices.groovy  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/applications/party/src/main/groovy/org/apache/ofbiz/party/party/PartyInvitationServices.groovy
 
b/applications/party/src/main/groovy/org/apache/ofbiz/party/party/PartyInvitationServices.groovy
index 35b7912887..6857c5ae7c 100644
--- 
a/applications/party/src/main/groovy/org/apache/ofbiz/party/party/PartyInvitationServices.groovy
+++ 
b/applications/party/src/main/groovy/org/apache/ofbiz/party/party/PartyInvitationServices.groovy
@@ -40,7 +40,7 @@ Map createPartyInvitation() {
 Map updatePartyInvitation() {
     GenericValue lookedUpValue = makeValue('PartyInvitation', parameters)
     if (! parameters.toName && parameters.partyId) {
-        newEntity.toName = PartyHelper.getPartyName(delegator, 
parameters.partyId, false)
+        lookedUpValue.toName = PartyHelper.getPartyName(delegator, 
parameters.partyId, false)
     }
     lookedUpValue.store()
     return success()

Reply via email to