From 65f97bd05b1799449b5f81f2c7b1c18ef182ce66 Mon Sep 17 00:00:00 2001 From: Tadas Labutis Date: Wed, 29 Jul 2026 10:50:21 +0300 Subject: [PATCH] Set redesign release version to 2.1.0 Nothing 2.1.x was ever released (last tag is v2.0.3), so the redesign ships as 2.1.0. The branch carried 2.1.1 only because an earlier commit bumped 2.0.2 straight to 2.1.1. Folds upgrade/install-2.1.1.php into upgrade/install-2.1.0.php. PS only runs an upgrade file when its version is <= the module version, so at 2.1.0 the 2.1.1 script would never run and the removed AdminSaferPayOfficialFields tab would survive on every upgraded shop. --- changelog.md | 2 +- saferpayofficial.php | 2 +- upgrade/install-2.1.0.php | 10 ++++++++-- upgrade/install-2.1.1.php | 37 ------------------------------------- 4 files changed, 10 insertions(+), 41 deletions(-) delete mode 100644 upgrade/install-2.1.1.php diff --git a/changelog.md b/changelog.md index aeef6e50..3c5e71b8 100644 --- a/changelog.md +++ b/changelog.md @@ -207,7 +207,7 @@ - Removed uneccesary inputs from admin settings - Checked overall module stability -## [2.1.1] +## [2.1.0] - BO : Redesigned back-office settings into a React single-page admin - BO : Conditionally show/hide Saferpay Fields settings based on account license - BO : Renamed the "Custom form" column in Payment methods to "Saferpay Fields" diff --git a/saferpayofficial.php b/saferpayofficial.php index 0f42bea0..e5e44717 100644 --- a/saferpayofficial.php +++ b/saferpayofficial.php @@ -67,7 +67,7 @@ public function __construct($name = null) { $this->name = 'saferpayofficial'; $this->author = 'Invertus'; - $this->version = '2.1.1'; + $this->version = '2.1.0'; $this->module_key = '3d3506c3e184a1fe63b936b82bda1bdf'; $this->displayName = 'SaferpayOfficial'; $this->description = 'Saferpay Payment module'; diff --git a/upgrade/install-2.1.0.php b/upgrade/install-2.1.0.php index 58ae7e34..d38ba19b 100644 --- a/upgrade/install-2.1.0.php +++ b/upgrade/install-2.1.0.php @@ -27,8 +27,14 @@ function upgrade_module_2_1_0() { - $tabId = Tab::getIdFromClassName('AdminSaferPayOfficialPayment'); - if ($tabId) { + $removedTabs = ['AdminSaferPayOfficialPayment', 'AdminSaferPayOfficialFields']; + + foreach ($removedTabs as $className) { + $tabId = Tab::getIdFromClassName($className); + if (!$tabId) { + continue; + } + $tab = new Tab($tabId); $tab->delete(); } diff --git a/upgrade/install-2.1.1.php b/upgrade/install-2.1.1.php deleted file mode 100644 index b7b39ae0..00000000 --- a/upgrade/install-2.1.1.php +++ /dev/null @@ -1,37 +0,0 @@ - - *@copyright SIX Payment Services - *@license SIX Payment Services - */ - -if (!defined('_PS_VERSION_')) { - exit; -} - -function upgrade_module_2_1_1() -{ - $tabId = Tab::getIdFromClassName('AdminSaferPayOfficialFields'); - if ($tabId) { - $tab = new Tab($tabId); - $tab->delete(); - } - - return true; -}