#129 - FIX: htmlfield editor will be created correctly

This commit is contained in:
torleif 2016-06-21 15:44:37 +12:00 committed by GitHub
parent 4aa66af42d
commit e6ea99ac12
1 changed files with 4 additions and 0 deletions

View File

@ -101,6 +101,10 @@ class WidgetController extends Controller
*/
public function editablesegment()
{
// use left and main to set the html config
$leftandmain = LeftAndMain::create();
$leftandmain->init();
$className = $this->urlParams['ID'];
if (class_exists('Translatable') && Member::currentUserID()) {
// set current locale based on logged in user's locale