fix: small fix to a missing ajax check

- ajax forms opened full screen look bad
pull/2547/head
iglocska 2017-10-09 15:39:44 +02:00
parent 1b30913d66
commit 17592a4f27
1 changed files with 1 additions and 0 deletions

View File

@ -209,6 +209,7 @@ class ObjectReferencesController extends AppController {
}
}
} else {
if (!$this->request->is('ajax')) throw new MethodNotAllowedException('This action is only accessible via POST request.');
$this->set('hard', $hard);
$this->set('id', $id);
$this->set('event_id', $objectReference['Object']['Event']['id']);