Skip to content

Commit 682944c

Browse files
Merge pull request #173 from PrestaShop/dev
Release version 5.0.3
2 parents 2aa643f + 0354f58 commit 682944c

4 files changed

Lines changed: 30 additions & 26 deletions

File tree

classes/Form/ConfigurationForm.php

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020

2121
namespace PrestaShop\Module\Ps_Googleanalytics\Form;
2222

23-
use AdminController;
2423
use Configuration;
2524
use Context;
2625
use HelperForm;
@@ -53,25 +52,33 @@ public function generate()
5352
$helper->module = $this->module;
5453
$helper->name_controller = $this->module->name;
5554
$helper->token = Tools::getAdminTokenLite('AdminModules');
56-
$helper->currentIndex = AdminController::$currentIndex . '&configure=' . $this->module->name;
55+
$helper->currentIndex = Context::getContext()->link->getAdminLink('AdminModules', true, [], [
56+
'configure' => $this->module->name,
57+
'tab_module' => $this->module->tab,
58+
'module_name' => $this->module->name,
59+
]);
5760

5861
// Language
5962
$helper->default_form_language = $default_lang;
6063
$helper->allow_employee_form_lang = $default_lang;
6164

6265
// Title and toolbar
6366
$helper->title = $this->module->displayName;
64-
$helper->show_toolbar = true; // false -> remove toolbar
65-
$helper->toolbar_scroll = true; // yes - > Toolbar is always visible on the top of the screen.
67+
$helper->show_toolbar = true; // false -> remove toolbar
68+
$helper->toolbar_scroll = true; // yes - > Toolbar is always visible on the top of the screen.
6669
$helper->submit_action = 'submit' . $this->module->name;
6770
$helper->toolbar_btn = [
6871
'save' => [
6972
'desc' => $this->module->getTranslator()->trans('Save', [], 'Modules.Googleanalytics.Admin'),
70-
'href' => AdminController::$currentIndex . '&configure=' . $this->module->name . '&save=' . $this->module->name .
71-
'&token=' . $helper->token,
73+
'href' => Context::getContext()->link->getAdminLink('AdminModules', true, [], [
74+
'configure' => $this->module->name,
75+
'tab_module' => $this->module->tab,
76+
'module_name' => $this->module->name,
77+
'save' => $this->module->name,
78+
]),
7279
],
7380
'back' => [
74-
'href' => AdminController::$currentIndex . '&token=' . $helper->token,
81+
'href' => Context::getContext()->link->getAdminLink('AdminModules', true),
7582
'desc' => $this->module->getTranslator()->trans('Back to list', [], 'Modules.Googleanalytics.Admin'),
7683
],
7784
];

composer.lock

Lines changed: 14 additions & 17 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

config.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<module>
33
<name>ps_googleanalytics</name>
44
<displayName><![CDATA[Google Analytics]]></displayName>
5-
<version><![CDATA[5.0.2]]></version>
5+
<version><![CDATA[5.0.3]]></version>
66
<description><![CDATA[Gain clear insights into important metrics about your customers, using Google Analytics]]></description>
77
<author><![CDATA[PrestaShop]]></author>
88
<tab><![CDATA[analytics_stats]]></tab>

ps_googleanalytics.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public function __construct()
4747
{
4848
$this->name = 'ps_googleanalytics';
4949
$this->tab = 'analytics_stats';
50-
$this->version = '5.0.2';
50+
$this->version = '5.0.3';
5151
$this->ps_versions_compliancy = ['min' => '1.7.7', 'max' => _PS_VERSION_];
5252
$this->author = 'PrestaShop';
5353
$this->module_key = 'fd2aaefea84ac1bb512e6f1878d990b8';

0 commit comments

Comments
 (0)