Skip to content

Commit 53bddb8

Browse files
authored
Merge pull request PrestaShop#116 from Touxten/fix-link
Fix the link since the page migration
2 parents f50a787 + 0e76725 commit 53bddb8

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

ps_emailsubscription.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ public function getContent()
239239
$c->update();
240240
}
241241

242-
Tools::redirectAdmin($this->context->link->getAdminLink('AdminModules', false) . '&configure=' . $this->name . '&conf=4&token=' . Tools::getAdminTokenLite('AdminModules'));
242+
Tools::redirectAdmin($this->context->link->getAdminLink('AdminModules', true, [], ['configure' => $this->name, 'conf' => 4]));
243243
} elseif (Tools::isSubmit('submitExport') && $action = Tools::getValue('action')) {
244244
$this->export_csv();
245245
} elseif (Tools::isSubmit('searchEmail')) {
@@ -312,7 +312,7 @@ public function renderList()
312312
$helper_list->simple_header = false;
313313
$helper_list->identifier = 'id';
314314
$helper_list->table = 'merged';
315-
$helper_list->currentIndex = $this->context->link->getAdminLink('AdminModules', false) . '&configure=' . $this->name;
315+
$helper_list->currentIndex = $this->context->link->getAdminLink('AdminModules', false, [], ['configure' => $this->name]);
316316
$helper_list->token = Tools::getAdminTokenLite('AdminModules');
317317
$helper_list->actions = ['viewCustomer'];
318318

@@ -334,7 +334,7 @@ public function renderList()
334334
public function displayViewCustomerLink($token = null, $id = null, $name = null)
335335
{
336336
$this->smarty->assign([
337-
'href' => 'index.php?controller=AdminCustomers&id_customer=' . (int) $id . '&updatecustomer&token=' . Tools::getAdminTokenLite('AdminCustomers'),
337+
'href' => $this->context->link->getAdminLink('AdminCustomers', true, ['route' => 'admin_customers_edit', 'customerId' => (int) $id], ['id_customer' => (int) $id, 'updatecustomer' => 1]),
338338
'action' => $this->trans('View', [], 'Admin.Actions'),
339339
'disable' => !((int) $id > 0),
340340
]);
@@ -1109,7 +1109,7 @@ public function renderForm()
11091109
$helper->allow_employee_form_lang = Configuration::get('PS_BO_ALLOW_EMPLOYEE_FORM_LANG') ? Configuration::get('PS_BO_ALLOW_EMPLOYEE_FORM_LANG') : 0;
11101110
$helper->identifier = $this->identifier;
11111111
$helper->submit_action = 'submitUpdate';
1112-
$helper->currentIndex = $this->context->link->getAdminLink('AdminModules', false) . '&configure=' . $this->name . '&tab_module=' . $this->tab . '&module_name=' . $this->name;
1112+
$helper->currentIndex = $this->context->link->getAdminLink('AdminModules', false, [], ['configure' => $this->name, 'tab_module' => $this->tab, 'module_name' => $this->name]);
11131113
$helper->token = Tools::getAdminTokenLite('AdminModules');
11141114
$helper->tpl_vars = [
11151115
'fields_value' => $this->getConfigFieldsValues(),
@@ -1210,7 +1210,7 @@ public function renderExportForm()
12101210
$helper->allow_employee_form_lang = Configuration::get('PS_BO_ALLOW_EMPLOYEE_FORM_LANG') ? Configuration::get('PS_BO_ALLOW_EMPLOYEE_FORM_LANG') : 0;
12111211
$helper->identifier = $this->identifier;
12121212
$helper->submit_action = 'btnSubmit';
1213-
$helper->currentIndex = $this->context->link->getAdminLink('AdminModules', false) . '&configure=' . $this->name . '&tab_module=' . $this->tab . '&module_name=' . $this->name;
1213+
$helper->currentIndex = $this->context->link->getAdminLink('AdminModules', false, [], ['configure' => $this->name, 'tab_module' => $this->tab, 'module_name' => $this->name]);
12141214
$helper->token = Tools::getAdminTokenLite('AdminModules');
12151215
$helper->tpl_vars = [
12161216
'fields_value' => $this->getConfigFieldsValues(),
@@ -1249,7 +1249,7 @@ public function renderSearchForm()
12491249
$helper->table = $this->table;
12501250
$helper->identifier = $this->identifier;
12511251
$helper->submit_action = 'searchEmail';
1252-
$helper->currentIndex = $this->context->link->getAdminLink('AdminModules', false) . '&configure=' . $this->name . '&tab_module=' . $this->tab . '&module_name=' . $this->name;
1252+
$helper->currentIndex = $this->context->link->getAdminLink('AdminModules', false, [], ['configure' => $this->name, 'tab_module' => $this->tab, 'module_name' => $this->name]);
12531253
$helper->token = Tools::getAdminTokenLite('AdminModules');
12541254
$helper->tpl_vars = [
12551255
'fields_value' => ['searched_email' => $this->_searched_email],

0 commit comments

Comments
 (0)