FIX: fix saving title photo in content pages

This commit is contained in:
Michal Kváček
2016-09-04 23:33:56 +02:00
parent 59dede6049
commit 8c4b1ad69b
3 changed files with 13 additions and 8 deletions
@@ -116,7 +116,9 @@ class CreateNewContent extends Controller
}
// upload file - if provided
$page->uploadTitlePhoto($request);
$file = $page->uploadTitlePhoto($request);
$page->title_photo = $file ? $file['filename'] : null;
// save module-specific stuff
call_user_func_array([$module->handler, 'createNew'], [&$page, $request]);