Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
6 changes: 3 additions & 3 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
uses: actions/checkout@v2.0.0

- name: Cache dependencies
uses: actions/cache@v2
uses: actions/cache@v4
with:
path: vendor
key: php-${{ hashFiles('composer.lock') }}
Expand Down Expand Up @@ -71,14 +71,14 @@ jobs:

# Add vendor folder in cache to make next builds faster
- name: Cache vendor folder
uses: actions/cache@v1
uses: actions/cache@v4
with:
path: vendor
key: php-${{ hashFiles('composer.lock') }}

# Add composer local folder in cache to make next builds faster
- name: Cache composer folder
uses: actions/cache@v1
uses: actions/cache@v4
with:
path: ~/.composer/cache
key: php-composer-cache
Expand Down
3 changes: 1 addition & 2 deletions statscatalog.php
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,6 @@ public function getProductsNB($id_lang)
public function hookDisplayAdminStatsModules($params)
{
$categories = Category::getCategories($this->context->language->id, true, false);
$product_token = Tools::getAdminToken('AdminProducts' . (int) Tab::getIdFromClassName('AdminProducts') . (int) $this->context->employee->id);
$irow = 0;

if ($id_category = (int) Tools::getValue('id_category')) {
Expand Down Expand Up @@ -239,7 +238,7 @@ public function hookDisplayAdminStatsModules($params)
<td>' . $product['name'] . '</td>
<td class="left">
<div class="btn-group btn-group-action">
<a class="btn btn-default" href="' . Tools::safeOutput('index.php?controller=AdminProducts&id_product=' . $product['id_product'] . '&addproduct&token=' . $product_token) . '" target="_blank">
<a class="btn btn-default" href="' . Tools::safeOutput($this->context->link->getAdminLink('AdminProducts', true) . '&id_product=' . $product['id_product'] . '&addproduct') . '" target="_blank">
<i class="icon-edit"></i> ' . $this->trans('Edit', [], 'Admin.Global') . '
</a>
<button data-toggle="dropdown" class="btn btn-default dropdown-toggle" type="button">
Expand Down
Loading