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

commit 2098906933b9e4de5e5b11a0caff419a93f4bb28
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 0cb6a63311..8a4804bf52 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
@@ -38,7 +38,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