From 0993d812cb74d16f47cece35be21f2832d71fcec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20Kv=C3=A1=C4=8Dek?= Date: Tue, 16 Aug 2016 13:20:30 +0200 Subject: [PATCH] FIX: fix routes to writing new blog and blog post overview --- modules/Blog/Article/Handlers/Article.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/Blog/Article/Handlers/Article.php b/modules/Blog/Article/Handlers/Article.php index fb4aeb83..90d0f39d 100644 --- a/modules/Blog/Article/Handlers/Article.php +++ b/modules/Blog/Article/Handlers/Article.php @@ -71,7 +71,7 @@ class Article extends Handler // get data and try to save them $data = EditContent::getFields($request, $fields); - $data['allowComments'] = (int) $data['allowComments']; + $data['allowComments'] = (int)$data['allowComments']; list($revision, $changedColumns) = $content->updateWithHistory($fields, $data, $revisionID); @@ -90,8 +90,8 @@ class Article extends Handler $menu = \Menu::instance('mainMenu'); $menu->dropdown(trans('article::module.name'), function ($sub) { - $sub->route('article.new', trans('article::article.new'), [], 10, ['icon' => 'fa fa-fw fa-pencil']); - $sub->route('article.overview', trans('article::article.overview'), [], 30, ['icon' => 'fa fa-fw fa-book']); + $sub->route('content.new', trans('article::article.new'), ['id' => self::getModuleId()], 10, ['icon' => 'fa fa-fw fa-pencil']); + $sub->route('content.overview', trans('article::article.overview'), ['id' => self::getModuleId()], 30, ['icon' => 'fa fa-fw fa-book']); }, 10, ['icon' => 'fa fa-fw fa-book']); }