mirror of https://github.com/MISP/MISP
fix: [sync] Critical bug fixed that blocked attributes from being included in a push
- due to the change to the deleted flag that was not reflected in the way we prepare events for the synchronisationpull/4706/head
parent
304358b162
commit
de7ea40222
|
@ -1367,7 +1367,7 @@ class Event extends AppModel
|
|||
$url = $server['Server']['url'];
|
||||
$HttpSocket = $this->setupHttpSocket($server, $HttpSocket);
|
||||
$request = $this->setupSyncRequest($server);
|
||||
$uri = $url . '/events/view/' . $eventId . '/deleted:1/excludeGalaxy:1';
|
||||
$uri = $url . '/events/view/' . $eventId . '/deleted:both/excludeGalaxy:1';
|
||||
$response = $HttpSocket->get($uri, $data = '', $request);
|
||||
if ($response->isOk()) {
|
||||
return json_decode($response->body, true);
|
||||
|
@ -3996,7 +3996,7 @@ class Event extends AppModel
|
|||
'eventid' => $id,
|
||||
'includeAttachments' => true,
|
||||
'includeAllTags' => true,
|
||||
'deleted' => true,
|
||||
'deleted' => array(0,1),
|
||||
'excludeGalaxy' => 1
|
||||
));
|
||||
$event = $this->fetchEvent($elevatedUser, $params);
|
||||
|
|
Loading…
Reference in New Issue