From c4b9aeb9b72d3b612f53165bb3ca9c0a6a65ea9c Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Thu, 13 Aug 2020 10:00:25 +0200 Subject: [serversetup-bwlp-ipxe] Show all machines in Localboot override list It's a bad idea to hide machines that haven't been seen in a while, since they could have an override defined, which would get lost if you save the list again. --- modules-available/serversetup-bwlp-ipxe/page.inc.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'modules-available') diff --git a/modules-available/serversetup-bwlp-ipxe/page.inc.php b/modules-available/serversetup-bwlp-ipxe/page.inc.php index 4e3501fb..1165d641 100644 --- a/modules-available/serversetup-bwlp-ipxe/page.inc.php +++ b/modules-available/serversetup-bwlp-ipxe/page.inc.php @@ -266,15 +266,13 @@ class Page_ServerSetup extends Page $default = Localboot::getDefault(); $optionList = $this->makeSelectArray(Localboot::BOOT_METHODS, $default); // Exceptions - $cutoff = strtotime('-90 days'); $models = []; $res = Database::simpleQuery('SELECT m.systemmodel, cnt, sl.pcbios AS PCBIOS, sl.efi AS EFI FROM ( SELECT m2.systemmodel, Count(*) AS cnt FROM machine m2 - WHERE m2.lastseen > :cutoff GROUP BY systemmodel ) m LEFT JOIN serversetup_localboot sl USING (systemmodel) - ORDER BY systemmodel', ['cutoff' => $cutoff]); + ORDER BY systemmodel'); while ($row = $res->fetch(PDO::FETCH_ASSOC)) { $row['modelesc'] = urlencode($row['systemmodel']); $row['options'] = $this->makeSelectArray(Localboot::BOOT_METHODS, $row); -- cgit v1.2.3-55-g7522