fix: Fixed a bug where /events/uuid would return the incorrect event.

pull/2428/head
iglocska 2017-08-28 20:39:06 +02:00
parent 360b2df9bc
commit 5d2c8822ad
1 changed files with 1 additions and 1 deletions

View File

@ -902,7 +902,7 @@ class EventsController extends AppController {
$this->Event->recursive = -1;
$temp = $this->Event->find('first', array(
'recursive' => -1,
'conditons' => array('Event.uuid' => $id),
'conditions' => array('Event.uuid' => $id),
'fields' => array('Event.id', 'Event.uuid')
));
if ($temp == null) throw new NotFoundException('Invalid event');