Merge pull request #9615 from vincenzocaputo/fix-accept-delegation-attachments

fix: Attachments deletion when accepting a delegation request
pull/9178/merge
Alexandre Dulaunoy 2024-03-14 16:20:38 +01:00 committed by GitHub
commit 0723035c02
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 1 deletions

View File

@ -31,7 +31,10 @@ class EventDelegation extends AppModel
public function transferEvent($delegation, $user)
{
$event = $this->Event->fetchEvent($user, array('eventid' => $delegation['EventDelegation']['event_id']));
$event = $this->Event->fetchEvent($user, array(
'eventid' => $delegation['EventDelegation']['event_id'],
'includeAttachments' => 1
));
if (empty($event)) {
throw new NotFoundException('Invalid event.');
}