fix: [sync] Fixed an incorrectly formatted event index output when minimal:1 is passed, breaking the sync pull

- ffs
pull/3953/head
iglocska 2018-12-13 10:28:58 +01:00
parent a56e1b44b5
commit 2ce3bdddbe
1 changed files with 1 additions and 1 deletions

View File

@ -783,8 +783,8 @@ class EventsController extends AppController
} else {
foreach ($events as $key => $event) {
$events[$key] = $event['Event'];
return $this->RestResponse->viewData($events, $this->response->type());
}
return $this->RestResponse->viewData($events, $this->response->type());
}
} else {
$events = $this->paginate();