fix: [feed preview] fixed exception thrown to invalid threat level listing call

pull/7390/head
iglocska 2021-05-05 16:37:57 +02:00
parent 7424cbf73b
commit 40af102e2b
No known key found for this signature in database
GPG Key ID: BEA224F1FEF113AC
1 changed files with 1 additions and 1 deletions

View File

@ -814,7 +814,7 @@ class FeedsController extends AppController
$this->set($alias, $currentModel->{$variable});
}
}
$this->set('threatLevels', $this->Event->ThreatLevel->list());
$this->set('threatLevels', $this->Event->ThreatLevel->find('list'));
} else {
if ($event === 'blocked') {
throw new MethodNotAllowedException(__('This event is blocked by the Feed filters.'));