mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-17 18:14:42 +00:00
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:
parent
dd3a47ca34
commit
084ac9489b
@ -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' => '',
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user