From ad4ac9f28592723557b823e87060b1aa8f91d8ce Mon Sep 17 00:00:00 2001 From: Julius Zukauskas Date: Fri, 30 Jun 2023 13:13:54 +0300 Subject: [PATCH] upgrade to 3.13.0 --- config.xml | 2 +- ps_facetedsearch.php | 2 +- upgrade/upgrade-3.13.0.php | 33 +++++++++++++++++++++++++++++++++ 3 files changed, 35 insertions(+), 2 deletions(-) create mode 100644 upgrade/upgrade-3.13.0.php diff --git a/config.xml b/config.xml index b770a6676..765c257b5 100644 --- a/config.xml +++ b/config.xml @@ -2,7 +2,7 @@ ps_facetedsearch - + diff --git a/ps_facetedsearch.php b/ps_facetedsearch.php index 4cd9310ea..b21d3aacb 100644 --- a/ps_facetedsearch.php +++ b/ps_facetedsearch.php @@ -96,7 +96,7 @@ public function __construct() { $this->name = 'ps_facetedsearch'; $this->tab = 'front_office_features'; - $this->version = '3.12.1'; + $this->version = '3.13.0'; $this->author = 'PrestaShop'; $this->need_instance = 0; $this->bootstrap = true; diff --git a/upgrade/upgrade-3.13.0.php b/upgrade/upgrade-3.13.0.php new file mode 100644 index 000000000..5a8bc80ca --- /dev/null +++ b/upgrade/upgrade-3.13.0.php @@ -0,0 +1,33 @@ + + * @copyright Since 2007 PrestaShop SA and Contributors + * @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0) + */ +if (!defined('_PS_VERSION_')) { + exit; +} + +function upgrade_module_3_13_0(Ps_Facetedsearch $module) +{ + $newHooks = [ + 'actionFeatureValueFormBuilderModifier', + 'actionAfterCreateFeatureValueFormHandler', + 'actionAfterUpdateFeatureValueFormHandler', + ]; + + return $module->registerHook($newHooks); +}