Merge pull request #130 from torleif/patch-3

#129 - FIX: htmlfield editor will be created correctly
This commit is contained in:
Damian Mooyman 2016-07-12 14:44:18 +12:00 committed by GitHub
commit 9e2b4f1586

View File

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