Skip to content

Commit 46a1eb9

Browse files
committed
do not hardcode the items field name
1 parent 2236a1e commit 46a1eb9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

formwidgets/MenuItems.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public function prepareVars()
5858
$menuItem = new MenuItem;
5959

6060
$this->vars['itemProperties'] = json_encode($menuItem->fillable);
61-
$this->vars['items'] = $this->model->items;
61+
$this->vars['items'] = $this->model->{$this->fieldName};
6262

6363
$emptyItem = new MenuItem;
6464
$emptyItem->title = trans($this->newItemTitle);

0 commit comments

Comments
 (0)