Skip to content

Commit d2a96ce

Browse files
authored
Update BlockController.php
1 parent 030ecca commit d2a96ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/controllers/admin/BlockController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ public function actionView($id)
7070
*/
7171
protected function findModel($id)
7272
{
73-
if (($model = Block::findOne($id)) !== null) {
73+
if (($model = call_user_func([Block::getDefinitionClass(), 'findOne'],$id)) !== null) {
7474
return $model;
7575
} else {
7676
throw new NotFoundHttpException('The requested page does not exist.');

0 commit comments

Comments
 (0)