summaryrefslogtreecommitdiffstats
path: root/modules-available/serversetup-bwlp-ipxe
diff options
context:
space:
mode:
authorSimon Rettberg2020-01-24 14:57:54 +0100
committerSimon Rettberg2020-01-24 14:57:54 +0100
commit39afe827bae788ecab606bd2a247e4893b0090e0 (patch)
treef9a3d3088b20b42ca418322f820afc97397d9242 /modules-available/serversetup-bwlp-ipxe
parent[rebootcontrol] Fix WOL via jumphost (missing array index) (diff)
downloadslx-admin-39afe827bae788ecab606bd2a247e4893b0090e0.tar.gz
slx-admin-39afe827bae788ecab606bd2a247e4893b0090e0.tar.xz
slx-admin-39afe827bae788ecab606bd2a247e4893b0090e0.zip
[serversetup-ipxe] Properly init entry if mode is not StandardBootEntry
Fixes #3687
Diffstat (limited to 'modules-available/serversetup-bwlp-ipxe')
-rw-r--r--modules-available/serversetup-bwlp-ipxe/inc/execdata.inc.php2
-rw-r--r--modules-available/serversetup-bwlp-ipxe/page.inc.php4
2 files changed, 3 insertions, 3 deletions
diff --git a/modules-available/serversetup-bwlp-ipxe/inc/execdata.inc.php b/modules-available/serversetup-bwlp-ipxe/inc/execdata.inc.php
index 97f98b94..1f6fa265 100644
--- a/modules-available/serversetup-bwlp-ipxe/inc/execdata.inc.php
+++ b/modules-available/serversetup-bwlp-ipxe/inc/execdata.inc.php
@@ -159,4 +159,4 @@ class ExecData
];
}
-} \ No newline at end of file
+}
diff --git a/modules-available/serversetup-bwlp-ipxe/page.inc.php b/modules-available/serversetup-bwlp-ipxe/page.inc.php
index 511f15f9..c5d0728b 100644
--- a/modules-available/serversetup-bwlp-ipxe/page.inc.php
+++ b/modules-available/serversetup-bwlp-ipxe/page.inc.php
@@ -556,10 +556,10 @@ class Page_ServerSetup extends Page
}
}
if (!in_array('PCBIOS', $f)) {
- $params['entries'][] = ['mode' => 'PCBIOS'];
+ $params['entries'][] = (new ExecData)->toFormFields('PCBIOS');
}
if (!in_array('EFI', $f)) {
- $params['entries'][] = ['mode' => 'EFI'];
+ $params['entries'][] = (new ExecData)->toFormFields('EFI');
}
$params['disabled'] = User::hasPermission('ipxe.bootentry.edit') ? '' : 'disabled';