mvc: implement reusable grid template using form definitions. for https://github.com/opnsense/core/issues/8187 [3]

skip empty field definitions
This commit is contained in:
Ad Schellevis 2025-01-08 13:23:33 +01:00
parent dd3a47ca34
commit 084ac9489b

View File

@ -240,7 +240,7 @@ class ControllerBase extends ControllerRoot
$all_data = [];
$idx = 0;
foreach ($this->getFormXML($formname) as $rootkey => $rootnode) {
if ($rootkey == 'field') {
if ($rootkey == 'field' && !empty((string)$rootnode->id)) {
$record = [
'column-id' => '',
'label' => '',