From 97e3b0aa09db164325c208e90425dc019fe2464a Mon Sep 17 00:00:00 2001 From: Sebastian Almberg <83243306+Sebbeben@users.noreply.github.com> Date: Fri, 30 Jan 2026 21:56:14 +0100 Subject: [PATCH] Add downgrade warning for versions without Update Manager When downgrading to versions before v2.6.0, show a warning that the Update Manager will not be available in older versions and that future updates will need to be done manually via command line. --- .../admin/update_manager/index.html.twig | 37 ++++++++++++++++++- translations/messages.en.xlf | 6 +++ 2 files changed, 41 insertions(+), 2 deletions(-) diff --git a/templates/admin/update_manager/index.html.twig b/templates/admin/update_manager/index.html.twig index eb8c7548..d9dccbcf 100644 --- a/templates/admin/update_manager/index.html.twig +++ b/templates/admin/update_manager/index.html.twig @@ -133,7 +133,7 @@ {% if status.update_available and status.can_auto_update and validation.valid %} -
+ @@ -237,7 +237,7 @@ {% if release.version != status.current_version and status.can_auto_update and validation.valid %} + onsubmit="return confirmVersionChange('{{ release.tag }}', {{ release.version < status.current_version ? 'true' : 'false' }});"> @@ -371,4 +371,37 @@ {% endif %} + + {% endblock %} diff --git a/translations/messages.en.xlf b/translations/messages.en.xlf index ff0a05e6..592590a8 100644 --- a/translations/messages.en.xlf +++ b/translations/messages.en.xlf @@ -14988,5 +14988,11 @@ Buerklin-API Authentication server: Are you sure you want to downgrade Part-DB? This will revert to an older version. A backup will be created before the downgrade. + + + update_manager.downgrade_removes_update_manager + WARNING: This version does not include the Update Manager. After downgrading, you will need to update manually using the command line (git checkout, composer install, etc.). + +