diff --git a/Controller/Plugin/News.php b/Controller/Plugin/News.php index ca0e531..90aed9d 100644 --- a/Controller/Plugin/News.php +++ b/Controller/Plugin/News.php @@ -107,8 +107,8 @@ public function detail(array $options, $slug) function () use ($slug, $options) { $item = NewsQuery::create() ->joinCategory() - ->leftJoinContent() - ->findOneBySlug($slug); + ->filterBySlug($slug) + ->findOne(); if (!$item) { return null;