From 40b4e8744f77c5f19b285e7f2df8beef5360e296 Mon Sep 17 00:00:00 2001 From: Jon Bendtsen Date: Mon, 18 May 2026 12:07:50 +0200 Subject: [PATCH] Fix #37675 API Post eventattendee sets ref to same as id (#38274) * Fix #37675 API Post eventattendee sets ref to same as id * Move empty ref check after fetch #38274 --------- Co-authored-by: Jon Bendtsen --- .../eventorganization/class/conferenceorboothattendee.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/eventorganization/class/conferenceorboothattendee.class.php b/htdocs/eventorganization/class/conferenceorboothattendee.class.php index dbec03466ae..a7c34d2243b 100644 --- a/htdocs/eventorganization/class/conferenceorboothattendee.class.php +++ b/htdocs/eventorganization/class/conferenceorboothattendee.class.php @@ -301,7 +301,7 @@ class ConferenceOrBoothAttendee extends CommonObject $result = $this->createCommon($user, $notrigger); if ($result > 0) { $result = $this->fetch($result); - if ($result > 0) { + if ($result > 0 && empty($this->ref)) { $this->ref = (string) $this->id; $result = $this->update($user); }