Merge branch 'module_blog' into admin_theme

This commit is contained in:
Michal Kváček
2016-08-19 13:19:14 +02:00
45 changed files with 785 additions and 23 deletions
@@ -109,7 +109,7 @@ class CreateNewContent extends Controller
$page->status = $request->status;
$page->template = $request->template;
$page->module_handler = $module->handler;
$page->category_id = $request->category;
$page->category_id = (int)$request->category > 0 ? $request->category : null;
if ($request->parentPage) {
$page->parent_id = $request->parentPage;