FIX: fix contact e-mail saving in contact form

This commit is contained in:
Michal Kváček
2016-09-27 22:08:24 +02:00
parent 4c67d442d6
commit bf615f8494
2 changed files with 4 additions and 4 deletions
@@ -149,12 +149,12 @@ class CreateNewContent extends Controller
$page->title_photo = $file ? $file['filename'] : null;
// let template to modify request and content page
call_user_func_array([CurrentTemplate::handler(), 'beforeSave'], [&$page, $request]);
// save module-specific stuff
call_user_func_array([$module->handler, 'createNew'], [&$page, $request]);
// let template to modify request and content page
call_user_func_array([CurrentTemplate::handler(), 'beforeSave'], [&$page, $request]);
// save content of page before (possible) uploading related files
$page->save();