diff --git a/formwidgets/MenuItems.php b/formwidgets/MenuItems.php index 193154e..f29c0c4 100644 --- a/formwidgets/MenuItems.php +++ b/formwidgets/MenuItems.php @@ -58,7 +58,7 @@ public function prepareVars() $menuItem = new MenuItem; $this->vars['itemProperties'] = json_encode($menuItem->fillable); - $this->vars['items'] = $this->model->items; + $this->vars['items'] = $this->model->{$this->fieldName}; $emptyItem = new MenuItem; $emptyItem->title = trans($this->newItemTitle);