summaryrefslogtreecommitdiffstats
path: root/modules-available/serversetup-bwlp-ipxe/page.inc.php
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/page.inc.php
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/page.inc.php')
-rw-r--r--modules-available/serversetup-bwlp-ipxe/page.inc.php4
1 files changed, 2 insertions, 2 deletions
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';