diff --git a/framework/helper.class.php b/framework/helper.class.php index c5557cb237..5a4aad03ca 100644 --- a/framework/helper.class.php +++ b/framework/helper.class.php @@ -604,7 +604,7 @@ function initTableData(array $items, array &$fieldList, object $model = null): a $item->isParent = true; } - if(!empty($item->parent) && !isset($items[$item->parent])) $items->parent = ''; + if(!empty($item->parent) && !isset($items[$item->parent])) $item->parent = ''; if(!empty($item->parent) && isset($items[$item->parent])) $items[$item->parent]->isParent = true; if(count($item->actions) > $maxActionCount) $maxActionCount = count($item->actions);