From e488063c8fde2ce8a6bb45e69e187c05567078ad Mon Sep 17 00:00:00 2001 From: tleon Date: Thu, 11 May 2023 17:55:22 +0200 Subject: [PATCH 1/5] fix(trans): add missing domain in translations --- .../admin/AdminPsThemeCustoConfiguration.php | 156 +++++++++--------- 1 file changed, 78 insertions(+), 78 deletions(-) diff --git a/controllers/admin/AdminPsThemeCustoConfiguration.php b/controllers/admin/AdminPsThemeCustoConfiguration.php index 81906a7..ce08a4d 100755 --- a/controllers/admin/AdminPsThemeCustoConfiguration.php +++ b/controllers/admin/AdminPsThemeCustoConfiguration.php @@ -43,30 +43,30 @@ public function __construct() $this->controller_quick_name = 'configuration'; $this->aModuleActions = ['uninstall', 'install', 'configure', 'enable', 'disable', 'disable_mobile', 'enable_mobile', 'reset']; $this->moduleActionsNames = [ - $this->trans('Uninstall'), - $this->trans('Install'), - $this->trans('Configure'), - $this->trans('Enable'), - $this->trans('Disable'), - $this->trans('Disable Mobile'), - $this->trans('Enable Mobile'), - $this->trans('Reset'), + $this->trans('Uninstall', [], 'Modules.PsThemeCusto.Admin'), + $this->trans('Install', [], 'Modules.PsThemeCusto.Admin'), + $this->trans('Configure', [], 'Modules.PsThemeCusto.Admin'), + $this->trans('Enable', [], 'Modules.PsThemeCusto.Admin'), + $this->trans('Disable', [], 'Modules.PsThemeCusto.Admin'), + $this->trans('Disable Mobile', [], 'Modules.PsThemeCusto.Admin'), + $this->trans('Enable Mobile', [], 'Modules.PsThemeCusto.Admin'), + $this->trans('Reset', [], 'Modules.PsThemeCusto.Admin'), ]; $this->categoryList = [ - 'menu' => $this->trans('Menu'), - 'slider' => $this->trans('Slider'), - 'home_products' => $this->trans('Home Products'), - 'block_text' => $this->trans('Text block'), - 'banner' => $this->trans('Banner'), - 'social_newsletter' => $this->trans('Social & Newsletter'), - 'footer' => $this->trans('Footer'), - 'content' => $this->trans('content'), - 'categories' => $this->trans('Categories'), - 'navigation_column' => $this->trans('Navigation column'), - 'product_management' => $this->trans('Product management'), - 'product_detail' => $this->trans('Product detail'), - 'product_block' => $this->trans('Product block'), + 'menu' => $this->trans('Menu', [], 'Modules.PsThemeCusto.Admin'), + 'slider' => $this->trans('Slider', [], 'Modules.PsThemeCusto.Admin'), + 'home_products' => $this->trans('Home Products', [], 'Modules.PsThemeCusto.Admin'), + 'block_text' => $this->trans('Text block', [], 'Modules.PsThemeCusto.Admin'), + 'banner' => $this->trans('Banner', [], 'Modules.PsThemeCusto.Admin'), + 'social_newsletter' => $this->trans('Social & Newsletter', [], 'Modules.PsThemeCusto.Admin'), + 'footer' => $this->trans('Footer', [], 'Modules.PsThemeCusto.Admin'), + 'content' => $this->trans('content', [], 'Modules.PsThemeCusto.Admin'), + 'categories' => $this->trans('Categories', [], 'Modules.PsThemeCusto.Admin'), + 'navigation_column' => $this->trans('Navigation column', [], 'Modules.PsThemeCusto.Admin'), + 'product_management' => $this->trans('Product management', [], 'Modules.PsThemeCusto.Admin'), + 'product_detail' => $this->trans('Product detail', [], 'Modules.PsThemeCusto.Admin'), + 'product_block' => $this->trans('Product block', [], 'Modules.PsThemeCusto.Admin'), ]; } @@ -92,16 +92,16 @@ public function getHomepageListConfiguration() 'menu' => [ 'pages' => [ 'AdminCategories' => [ - $this->trans('Categories'), - $this->trans('Create here a full range of categories and subcategories to classify your products and manage your catalog easily.'), + $this->trans('Categories', [], 'Modules.PsThemeCusto.Admin'), + $this->trans('Create here a full range of categories and subcategories to classify your products and manage your catalog easily.', [], 'Modules.PsThemeCusto.Admin'), ], 'AdminCmsContent' => [ - $this->trans('Content pages'), - $this->trans('Add and manage your content pages to make your store interesting and trustworthy.'), + $this->trans('Content pages', [], 'Modules.PsThemeCusto.Admin'), + $this->trans('Add and manage your content pages to make your store interesting and trustworthy.', [], 'Modules.PsThemeCusto.Admin'), ], 'AdminManufacturers' => [ - $this->trans('Brands and Suppliers'), - $this->trans('Manage both your brands and suppliers at the same place !'), + $this->trans('Brands and Suppliers', [], 'Modules.PsThemeCusto.Admin'), + $this->trans('Manage both your brands and suppliers at the same place !', [], 'Modules.PsThemeCusto.Admin'), ], ], 'modules' => [ @@ -141,8 +141,8 @@ public function getHomepageListConfiguration() 'modules' => $footerModules, 'pages' => [ 'AdminStores' => [ - $this->trans('Shop details'), - $this->trans('Display additional information about your store or how to contact you to make it easy for your customers to reach you.'), + $this->trans('Shop details', [], 'Modules.PsThemeCusto.Admin'), + $this->trans('Display additional information about your store or how to contact you to make it easy for your customers to reach you.', [], 'Modules.PsThemeCusto.Admin'), ], ], ], @@ -160,8 +160,8 @@ public function getCategoryListConfiguration() $category = [ 'sfRoutePages' => [ 'admin_product_preferences' => [ - $this->trans('Pagination'), - $this->trans('Set the numbers of products you want to display per page and how.'), + $this->trans('Pagination', [], 'Modules.PsThemeCusto.Admin'), + $this->trans('Set the numbers of products you want to display per page and how.', [], 'Modules.PsThemeCusto.Admin'), ], ], ]; @@ -173,12 +173,12 @@ public function getCategoryListConfiguration() $menu = [ 'pages' => [ 'AdminCmsContent' => [ - $this->trans('Content pages'), - $this->trans('Add and manage your content pages to make your store interesting and trustworthy.'), + $this->trans('Content pages', [], 'Modules.PsThemeCusto.Admin'), + $this->trans('Add and manage your content pages to make your store interesting and trustworthy.', [], 'Modules.PsThemeCusto.Admin'), ], 'AdminManufacturers' => [ - $this->trans('Brands and Suppliers'), - $this->trans('Manage both your brands and suppliers at the same place !'), + $this->trans('Brands and Suppliers', [], 'Modules.PsThemeCusto.Admin'), + $this->trans('Manage both your brands and suppliers at the same place !', [], 'Modules.PsThemeCusto.Admin'), ], ], 'modules' => [ @@ -189,8 +189,8 @@ public function getCategoryListConfiguration() $category = [ 'pages' => [ 'AdminPPreferences' => [ - $this->trans('Pagination'), - $this->trans('Set the numbers of products you want to display per page and how.'), + $this->trans('Pagination', [], 'Modules.PsThemeCusto.Admin'), + $this->trans('Set the numbers of products you want to display per page and how.', [], 'Modules.PsThemeCusto.Admin'), ], ], ]; @@ -201,12 +201,12 @@ public function getCategoryListConfiguration() $menu = [ 'pages' => [ 'AdminCmsContent' => [ - $this->trans('Content pages'), - $this->trans('Add and manage your content pages to make your store interesting and trustworthy.'), + $this->trans('Content pages', [], 'Modules.PsThemeCusto.Admin'), + $this->trans('Add and manage your content pages to make your store interesting and trustworthy.', [], 'Modules.PsThemeCusto.Admin'), ], 'AdminManufacturers' => [ - $this->trans('Brands and Suppliers'), - $this->trans('Manage both your brands and suppliers at the same place !'), + $this->trans('Brands and Suppliers', [], 'Modules.PsThemeCusto.Admin'), + $this->trans('Manage both your brands and suppliers at the same place !', [], 'Modules.PsThemeCusto.Admin'), ], ], 'modules' => [ @@ -220,8 +220,8 @@ public function getCategoryListConfiguration() 'categories' => [ 'pages' => [ 'AdminCategories' => [ - $this->trans('Categories'), - $this->trans('Create a full range of Categories and Subcategories to classify your products, add categoryies desciptions and manage your catalog easily.'), + $this->trans('Categories', [], 'Modules.PsThemeCusto.Admin'), + $this->trans('Create a full range of Categories and Subcategories to classify your products, add categoryies desciptions and manage your catalog easily.', [], 'Modules.PsThemeCusto.Admin'), ], ], ], @@ -242,8 +242,8 @@ public function getCategoryListConfiguration() 'modules' => $footerModules, 'pages' => [ 'AdminStores' => [ - $this->trans('Shop details'), - $this->trans('Display additional information about your store or how to contact you to make it easy for your customers to reach you.'), + $this->trans('Shop details', [], 'Modules.PsThemeCusto.Admin'), + $this->trans('Display additional information about your store or how to contact you to make it easy for your customers to reach you.', [], 'Modules.PsThemeCusto.Admin'), ], ], ], @@ -261,18 +261,18 @@ public function getProductListConfiguration() $productManagement = [ 'sfRoutePages' => [ 'admin_product_catalog' => [ - $this->trans('Catalog'), - $this->trans('Access your list of products to manage your catalog efficiently.'), + $this->trans('Catalog', [], 'Modules.PsThemeCusto.Admin'), + $this->trans('Access your list of products to manage your catalog efficiently.', [], 'Modules.PsThemeCusto.Admin'), ], 'admin_stock_overview' => [ - $this->trans('Stock'), - $this->trans('Manage your stock and edit product quantities right here.'), + $this->trans('Stock', [], 'Modules.PsThemeCusto.Admin'), + $this->trans('Manage your stock and edit product quantities right here.', [], 'Modules.PsThemeCusto.Admin'), ], ], 'pages' => [ 'AdminAttributesGroups' => [ - $this->trans('Product attributes'), - $this->trans('Create or manage your attributes : colors, sizes, materials, ...'), + $this->trans('Product attributes', [], 'Modules.PsThemeCusto.Admin'), + $this->trans('Create or manage your attributes : colors, sizes, materials, ...', [], 'Modules.PsThemeCusto.Admin'), ], ], ]; @@ -287,22 +287,22 @@ public function getProductListConfiguration() $productManagement = [ 'sfRoutePages' => [ 'admin_product_catalog' => [ - $this->trans('Catalog'), - $this->trans('Access your list of products to manage your catalog efficiently.'), + $this->trans('Catalog', [], 'Modules.PsThemeCusto.Admin'), + $this->trans('Access your list of products to manage your catalog efficiently.', [], 'Modules.PsThemeCusto.Admin'), ], ], 'pages' => [ 'AdminAttributesGroups' => [ - $this->trans('Product attributes'), - $this->trans('Create or manage your attributes : colors, sizes, materials, ...'), + $this->trans('Product attributes', [], 'Modules.PsThemeCusto.Admin'), + $this->trans('Create or manage your attributes : colors, sizes, materials, ...', [], 'Modules.PsThemeCusto.Admin'), ], 'AdminPPreferences' => [ - $this->trans('Quantities and stock availability'), - $this->trans('Choose the way you display quantities and stock availability on your product page.'), + $this->trans('Quantities and stock availability', [], 'Modules.PsThemeCusto.Admin'), + $this->trans('Choose the way you display quantities and stock availability on your product page.', [], 'Modules.PsThemeCusto.Admin'), ], 'AdminStockManagement' => [ - $this->trans('Stock'), - $this->trans('Manage your stock and edit product quantities right here.'), + $this->trans('Stock', [], 'Modules.PsThemeCusto.Admin'), + $this->trans('Manage your stock and edit product quantities right here.', [], 'Modules.PsThemeCusto.Admin'), ], ], ]; @@ -315,16 +315,16 @@ public function getProductListConfiguration() 'menu' => [ 'pages' => [ 'AdminCategories' => [ - $this->trans('Categories'), - $this->trans('Create here a full range of categories and subcategories to classify your products and manage your catalog easily.'), + $this->trans('Categories', [], 'Modules.PsThemeCusto.Admin'), + $this->trans('Create here a full range of categories and subcategories to classify your products and manage your catalog easily.', [], 'Modules.PsThemeCusto.Admin'), ], 'AdminCmsContent' => [ - $this->trans('Content pages'), - $this->trans('Add and manage your content pages to make your store interesting and trustworthy.'), + $this->trans('Content pages', [], 'Modules.PsThemeCusto.Admin'), + $this->trans('Add and manage your content pages to make your store interesting and trustworthy.', [], 'Modules.PsThemeCusto.Admin'), ], 'AdminManufacturers' => [ - $this->trans('Brands and Suppliers'), - $this->trans('Manage both your brands and suppliers at the same place !'), + $this->trans('Brands and Suppliers', [], 'Modules.PsThemeCusto.Admin'), + $this->trans('Manage both your brands and suppliers at the same place !', [], 'Modules.PsThemeCusto.Admin'), ], ], 'modules' => [ @@ -351,8 +351,8 @@ public function getProductListConfiguration() 'footer' => [ 'pages' => [ 'AdminStores' => [ - $this->trans('Shop details'), - $this->trans('Display additional information about your store or how to contact you to make it easy for your customers to reach you.'), + $this->trans('Shop details', [], 'Modules.PsThemeCusto.Admin'), + $this->trans('Display additional information about your store or how to contact you to make it easy for your customers to reach you.', [], 'Modules.PsThemeCusto.Admin'), ], ], 'modules' => [ @@ -407,8 +407,8 @@ public function initContent() $aJsDef = [ 'admin_module_controller_psthemecusto' => $this->getModule()->controller_name[1], 'admin_module_ajax_url_psthemecusto' => $this->getModule()->front_controller[1], - 'module_action_sucess' => $this->trans('Action on the module successfully completed'), - 'module_action_failed' => $this->trans('Action on module failed'), + 'module_action_sucess' => $this->trans('Action on the module successfully completed', [], 'Modules.PsThemeCusto.Admin'), + 'module_action_failed' => $this->trans('Action on module failed', [], 'Modules.PsThemeCusto.Admin'), ]; $jsPath = [$this->getModule()->js_path . '/controllers/' . $this->controller_quick_name . '/back.js']; $cssPath = [$this->getModule()->css_path . '/controllers/' . $this->controller_quick_name . '/back.css']; @@ -425,7 +425,7 @@ public function initContent() public function ajaxProcessUpdateModule() { if (!$this->getModule()->hasEditRight()) { - exit($this->trans('You do not have permission to edit this.')); + exit($this->trans('You do not have permission to edit this.', [], 'Modules.PsThemeCusto.Admin')); } $sModuleName = pSQL(Tools::getValue('module_name')); @@ -502,19 +502,19 @@ public function setFinalList($aList) if ($sType == 'pages') { foreach ($aElementsList as $sController => $aPage) { $aModuleFinalList[$sSegmentName][$sType][$sController]['name'] = $sController; - $aModuleFinalList[$sSegmentName][$sType][$sController]['displayName'] = $this->trans($aPage[0]); + $aModuleFinalList[$sSegmentName][$sType][$sController]['displayName'] = $this->trans($aPage[0], [], 'Modules.PsThemeCusto.Admin'); $aModuleFinalList[$sSegmentName][$sType][$sController]['url'] = $this->context->link->getAdminLink($sController); - $aModuleFinalList[$sSegmentName][$sType][$sController]['description'] = $this->trans($aPage[1]); - $aModuleFinalList[$sSegmentName][$sType][$sController]['action'] = $this->trans('Configure'); + $aModuleFinalList[$sSegmentName][$sType][$sController]['description'] = $this->trans($aPage[1], [], 'Modules.PsThemeCusto.Admin'); + $aModuleFinalList[$sSegmentName][$sType][$sController]['action'] = $this->trans('Configure', [], 'Modules.PsThemeCusto.Admin'); } } elseif ($sType == 'sfRoutePages') { $container = PrestaShop\PrestaShop\Adapter\SymfonyContainer::getInstance(); foreach ($aElementsList as $sController => $aPage) { $aModuleFinalList[$sSegmentName][$sType][$sController]['name'] = $sController; - $aModuleFinalList[$sSegmentName][$sType][$sController]['displayName'] = $this->trans($aPage[0]); + $aModuleFinalList[$sSegmentName][$sType][$sController]['displayName'] = $this->trans($aPage[0], [], 'Modules.PsThemeCusto.Admin'); $aModuleFinalList[$sSegmentName][$sType][$sController]['url'] = $container->get('router')->generate($sController); - $aModuleFinalList[$sSegmentName][$sType][$sController]['description'] = $this->trans($aPage[1]); - $aModuleFinalList[$sSegmentName][$sType][$sController]['action'] = $this->trans('Configure'); + $aModuleFinalList[$sSegmentName][$sType][$sController]['description'] = $this->trans($aPage[1], [], 'Modules.PsThemeCusto.Admin'); + $aModuleFinalList[$sSegmentName][$sType][$sController]['action'] = $this->trans('Configure', [], 'Modules.PsThemeCusto.Admin'); } } else { foreach ($aElementsList as $sModuleName => $iModuleId) { @@ -561,9 +561,9 @@ public function setModuleFinalList($oModuleInstance, $bIsInstalled) if ($bIsInstalled === true) { $aModule['can_configure'] = (method_exists($oModuleInstance, 'getContent')) ? true : false; if (method_exists($oModuleInstance, 'getContent')) { - $aModule['url_active'] = $this->trans(($oModuleInstance->active ? 'configure' : 'enable')); + $aModule['url_active'] = $this->trans(($oModuleInstance->active ? 'configure' : 'enable'), [], 'Modules.PsThemeCusto.Admin'); } else { - $aModule['url_active'] = $this->trans(($oModuleInstance->active ? 'disable' : 'enable')); + $aModule['url_active'] = $this->trans(($oModuleInstance->active ? 'disable' : 'enable'), [], 'Modules.PsThemeCusto.Admin'); } $aModule['installed'] = 1; } else { From d163527eb5aa7bf5abf26272842f67e68cad3275 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Hlav=C3=A1=C4=8Dek?= Date: Wed, 7 Feb 2024 09:31:28 +0100 Subject: [PATCH 2/5] Remove ajaxDie --- controllers/admin/AdminPsThemeCustoConfiguration.php | 7 ++++++- tests/phpstan/phpstan-1.7.1.2.neon | 1 + tests/phpstan/phpstan-1.7.2.5.neon | 1 + tests/phpstan/phpstan-1.7.3.4.neon | 1 + tests/phpstan/phpstan-1.7.4.4.neon | 1 + tests/phpstan/phpstan-1.7.5.1.neon | 1 + tests/phpstan/phpstan-1.7.6.neon | 1 + tests/phpstan/phpstan-1.7.7.neon | 1 + 8 files changed, 13 insertions(+), 1 deletion(-) diff --git a/controllers/admin/AdminPsThemeCustoConfiguration.php b/controllers/admin/AdminPsThemeCustoConfiguration.php index ce08a4d..6ba3d46 100755 --- a/controllers/admin/AdminPsThemeCustoConfiguration.php +++ b/controllers/admin/AdminPsThemeCustoConfiguration.php @@ -482,7 +482,12 @@ public function ajaxProcessUpdateModule() 'moduleActionsNames' => $this->moduleActionsNames, ]); - $this->ajaxDie($this->context->smarty->fetch(__DIR__ . '/../../views/templates/admin/controllers/' . $this->controller_quick_name . '/elem/module_actions.tpl')); + $tplPath = $this->context->smarty->fetch(__DIR__ . '/../../views/templates/admin/controllers/' . $this->controller_quick_name . '/elem/module_actions.tpl'); + if (version_compare(_PS_VERSION_, '1.7.5', '>=')) { + $this->ajaxRender($tplPath); + } else { + $this->ajaxDie($tplPath); + } } /** diff --git a/tests/phpstan/phpstan-1.7.1.2.neon b/tests/phpstan/phpstan-1.7.1.2.neon index b853e72..0d56317 100644 --- a/tests/phpstan/phpstan-1.7.1.2.neon +++ b/tests/phpstan/phpstan-1.7.1.2.neon @@ -5,3 +5,4 @@ parameters: ignoreErrors: - '#Access to an undefined property Cookie::\$profile.#' - '#Call to static method getInstance\(\) on an unknown class PrestaShop\\PrestaShop\\Adapter\\SymfonyContainer.#' + - '#Call to an undefined method AdminPsThemeCustoConfigurationController::ajaxRender\(\).#' diff --git a/tests/phpstan/phpstan-1.7.2.5.neon b/tests/phpstan/phpstan-1.7.2.5.neon index b853e72..0d56317 100644 --- a/tests/phpstan/phpstan-1.7.2.5.neon +++ b/tests/phpstan/phpstan-1.7.2.5.neon @@ -5,3 +5,4 @@ parameters: ignoreErrors: - '#Access to an undefined property Cookie::\$profile.#' - '#Call to static method getInstance\(\) on an unknown class PrestaShop\\PrestaShop\\Adapter\\SymfonyContainer.#' + - '#Call to an undefined method AdminPsThemeCustoConfigurationController::ajaxRender\(\).#' diff --git a/tests/phpstan/phpstan-1.7.3.4.neon b/tests/phpstan/phpstan-1.7.3.4.neon index 01b0e1a..4908bb5 100644 --- a/tests/phpstan/phpstan-1.7.3.4.neon +++ b/tests/phpstan/phpstan-1.7.3.4.neon @@ -4,3 +4,4 @@ includes: parameters: ignoreErrors: - '#Access to an undefined property Cookie::\$profile.#' + - '#Call to an undefined method AdminPsThemeCustoConfigurationController::ajaxRender\(\).#' diff --git a/tests/phpstan/phpstan-1.7.4.4.neon b/tests/phpstan/phpstan-1.7.4.4.neon index 01b0e1a..4908bb5 100644 --- a/tests/phpstan/phpstan-1.7.4.4.neon +++ b/tests/phpstan/phpstan-1.7.4.4.neon @@ -4,3 +4,4 @@ includes: parameters: ignoreErrors: - '#Access to an undefined property Cookie::\$profile.#' + - '#Call to an undefined method AdminPsThemeCustoConfigurationController::ajaxRender\(\).#' diff --git a/tests/phpstan/phpstan-1.7.5.1.neon b/tests/phpstan/phpstan-1.7.5.1.neon index 01b0e1a..83111f1 100644 --- a/tests/phpstan/phpstan-1.7.5.1.neon +++ b/tests/phpstan/phpstan-1.7.5.1.neon @@ -4,3 +4,4 @@ includes: parameters: ignoreErrors: - '#Access to an undefined property Cookie::\$profile.#' + - '#Parameter \#1 \$value of method ControllerCore::ajaxRender\(\) expects null, string given.#' diff --git a/tests/phpstan/phpstan-1.7.6.neon b/tests/phpstan/phpstan-1.7.6.neon index 01b0e1a..83111f1 100644 --- a/tests/phpstan/phpstan-1.7.6.neon +++ b/tests/phpstan/phpstan-1.7.6.neon @@ -4,3 +4,4 @@ includes: parameters: ignoreErrors: - '#Access to an undefined property Cookie::\$profile.#' + - '#Parameter \#1 \$value of method ControllerCore::ajaxRender\(\) expects null, string given.#' diff --git a/tests/phpstan/phpstan-1.7.7.neon b/tests/phpstan/phpstan-1.7.7.neon index 01b0e1a..83111f1 100644 --- a/tests/phpstan/phpstan-1.7.7.neon +++ b/tests/phpstan/phpstan-1.7.7.neon @@ -4,3 +4,4 @@ includes: parameters: ignoreErrors: - '#Access to an undefined property Cookie::\$profile.#' + - '#Parameter \#1 \$value of method ControllerCore::ajaxRender\(\) expects null, string given.#' From fa5e6170d210efc9f64f2fc92fe3d801e10adf07 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Hlav=C3=A1=C4=8Dek?= Date: Wed, 7 Feb 2024 15:20:06 +0100 Subject: [PATCH 3/5] Update AdminPsThemeCustoConfiguration.php --- controllers/admin/AdminPsThemeCustoConfiguration.php | 1 + 1 file changed, 1 insertion(+) diff --git a/controllers/admin/AdminPsThemeCustoConfiguration.php b/controllers/admin/AdminPsThemeCustoConfiguration.php index 6ba3d46..f19da7f 100755 --- a/controllers/admin/AdminPsThemeCustoConfiguration.php +++ b/controllers/admin/AdminPsThemeCustoConfiguration.php @@ -485,6 +485,7 @@ public function ajaxProcessUpdateModule() $tplPath = $this->context->smarty->fetch(__DIR__ . '/../../views/templates/admin/controllers/' . $this->controller_quick_name . '/elem/module_actions.tpl'); if (version_compare(_PS_VERSION_, '1.7.5', '>=')) { $this->ajaxRender($tplPath); + exit; } else { $this->ajaxDie($tplPath); } From 07105f51319094b1018ec2528ad6adb31c73c5cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Hlav=C3=A1=C4=8Dek?= Date: Tue, 20 Feb 2024 15:09:05 +0100 Subject: [PATCH 4/5] Update config.xml --- config.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config.xml b/config.xml index c5a0c2a..442181c 100644 --- a/config.xml +++ b/config.xml @@ -2,7 +2,7 @@ ps_themecusto - + From 94209ad4667cf8df4cb73794e93e2e20a180b514 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Hlav=C3=A1=C4=8Dek?= Date: Tue, 20 Feb 2024 15:09:11 +0100 Subject: [PATCH 5/5] Update ps_themecusto.php --- ps_themecusto.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ps_themecusto.php b/ps_themecusto.php index 849a4d7..6ca0459 100755 --- a/ps_themecusto.php +++ b/ps_themecusto.php @@ -45,7 +45,7 @@ public function __construct() { $this->name = 'ps_themecusto'; $this->tab = 'front_office_features'; - $this->version = '1.2.3'; + $this->version = '1.2.4'; $this->author = 'PrestaShop'; $this->module_key = 'af0983815ad8c8a193b5dc9168e8372e'; $this->author_address = '0x64aa3c1e4034d07015f639b0e171b0d7b27d01aa';