Skip to content
Merged
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions productcomments.php
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,7 @@ public function renderModerateLists()
$helper->table = $this->name;
$helper->table_id = 'waiting-approval-productcomments-list';
$helper->token = Tools::getAdminTokenLite('AdminModules');
$helper->currentIndex = AdminController::$currentIndex . '&configure=' . $this->name;
$helper->currentIndex = $this->context->link->getAdminLink('AdminModules', false, [], ['configure' => $this->name, 'tab_module' => $this->tab, 'module_name' => $this->name]);
$helper->no_link = true;

$return .= $helper->generateList($comments, $fields_list);
Expand All @@ -480,7 +480,7 @@ public function renderModerateLists()
$helper->table = $this->name;
$helper->table_id = 'reported-productcomments-list';
$helper->token = Tools::getAdminTokenLite('AdminModules');
$helper->currentIndex = AdminController::$currentIndex . '&configure=' . $this->name;
$helper->currentIndex = $this->context->link->getAdminLink('AdminModules', false, [], ['configure' => $this->name, 'tab_module' => $this->tab, 'module_name' => $this->name]);
$helper->no_link = true;

$return .= $helper->generateList($comments, $fields_list);
Expand Down Expand Up @@ -564,7 +564,7 @@ public function renderCriterionList()
$helper->title = $this->trans('Review Criteria', [], 'Modules.Productcomments.Admin');
$helper->table = $this->name . 'criterion';
$helper->token = Tools::getAdminTokenLite('AdminModules');
$helper->currentIndex = AdminController::$currentIndex . '&configure=' . $this->name;
$helper->currentIndex = $this->context->link->getAdminLink('AdminModules', false, [], ['configure' => $this->name, 'tab_module' => $this->tab, 'module_name' => $this->name]);

return $helper->generateList($criterions, $fields_list);
}
Expand All @@ -585,7 +585,7 @@ public function renderCommentsList()
$helper->table = $this->name;
$helper->table_id = 'approved-productcomments-list';
$helper->token = Tools::getAdminTokenLite('AdminModules');
$helper->currentIndex = AdminController::$currentIndex . '&configure=' . $this->name;
$helper->currentIndex = $this->context->link->getAdminLink('AdminModules', false, [], ['configure' => $this->name, 'tab_module' => $this->tab, 'module_name' => $this->name]);
$helper->no_link = true;

$page = ($page = Tools::getValue('submitFilter' . $helper->list_id)) ? (int) $page : 1;
Expand Down
Loading