fix: Fixed editing feeds via the UI

pull/3188/head
iglocska 2018-04-24 10:44:02 +02:00
parent ed13c5cf66
commit ffcecbf3cc
1 changed files with 3 additions and 1 deletions

View File

@ -273,7 +273,9 @@ class FeedsController extends AppController {
$this->Session->setFlash($message);
}
} else {
return $this->RestResponse->describe('Feeds', 'edit', false, $this->response->type());
if ($this->_isRest()) {
return $this->RestResponse->describe('Feeds', 'edit', false, $this->response->type());
}
if (!isset($this->request->data['Feed'])) {
$this->request->data = $this->Feed->data;
if ($this->Feed->data['Feed']['event_id']) {