mirror of https://github.com/MISP/MISP
Merge pull request #9615 from vincenzocaputo/fix-accept-delegation-attachments
fix: Attachments deletion when accepting a delegation requestpull/9178/merge
commit
0723035c02
|
@ -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.');
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue