diff options
author | Simon Rettberg | 2024-10-22 17:08:35 +0200 |
---|---|---|
committer | Simon Rettberg | 2024-10-22 17:08:35 +0200 |
commit | c734d614b3d750316a141f965b0af001afb49f31 (patch) | |
tree | 466d70a5988222cac07cb7ba51d9ad2108da9c37 /modules-available | |
parent | [minilinux] Add event for newly available netboot/minilinux version (diff) | |
download | slx-admin-c734d614b3d750316a141f965b0af001afb49f31.tar.gz slx-admin-c734d614b3d750316a141f965b0af001afb49f31.tar.xz slx-admin-c734d614b3d750316a141f965b0af001afb49f31.zip |
[minilinux] Don't hide delete button if all files are missing
If the version is still marked as downloaded in the database, not
showing the button means we can never fix (i.e. re-download) the
version... ;-)
Diffstat (limited to 'modules-available')
-rw-r--r-- | modules-available/minilinux/page.inc.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/modules-available/minilinux/page.inc.php b/modules-available/minilinux/page.inc.php index ce222b08..bf66f750 100644 --- a/modules-available/minilinux/page.inc.php +++ b/modules-available/minilinux/page.inc.php @@ -191,6 +191,9 @@ class Page_MiniLinux extends Page } elseif ($ver['installed'] != MiniLinux::INSTALL_OK && $verify) { MiniLinux::setInstalledState($versionid, MiniLinux::INSTALL_OK); } + if ((!$valid || !$verify) && $ver['installed'] != MiniLinux::INSTALL_MISSING) { + $data['delete_button'] = true; + } } if ($data['dltask'] !== null || $ver['installed'] != MiniLinux::INSTALL_MISSING) { MiniLinux::checkStage4($data, $data['s4_errors']); |