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 synchronisation
pull/4706/head
iglocska 2019-05-31 08:03:32 +02:00
parent 304358b162
commit de7ea40222
No known key found for this signature in database
GPG Key ID: BEA224F1FEF113AC
1 changed files with 2 additions and 2 deletions

View File

@ -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);