From b61995923b83dd5e8dc70efe789290c1ce3fe8ca Mon Sep 17 00:00:00 2001 From: Codencode Date: Fri, 27 Sep 2024 12:04:10 +0200 Subject: [PATCH 1/8] Update dashactivity.php Added method "saveDashConfig" --- dashactivity.php | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/dashactivity.php b/dashactivity.php index 4bb4d96..37c31f7 100755 --- a/dashactivity.php +++ b/dashactivity.php @@ -430,4 +430,24 @@ public function getConfigFieldsValues() 'DASHACTIVITY_VISITOR_ONLINE' => Tools::getValue('DASHACTIVITY_VISITOR_ONLINE', Configuration::get('DASHACTIVITY_VISITOR_ONLINE')), ]; } + + /** + * Save dashboard configuration + * + * @param array $config + * + * @return bool determines if there are errors or not + */ + public function saveDashConfig(array $config) + { + if (!$this->getPermission('configure')) { + return true; + } + + foreach (array_keys($this->getConfigFieldsValues()) as $fieldName) { + Configuration::updateValue($fieldName, (int) $config[$fieldName]); + } + + return false; + } } From ab6e9d80f783c8231025824fb2584cb5ac1e30f7 Mon Sep 17 00:00:00 2001 From: Codencode Date: Tue, 1 Oct 2024 10:48:39 +0200 Subject: [PATCH 2/8] Add ignoreErrors --- tests/phpstan/phpstan-1.7.7.neon | 1 + tests/phpstan/phpstan-1.7.8.neon | 1 + 2 files changed, 2 insertions(+) diff --git a/tests/phpstan/phpstan-1.7.7.neon b/tests/phpstan/phpstan-1.7.7.neon index b5f0783..6d53937 100644 --- a/tests/phpstan/phpstan-1.7.7.neon +++ b/tests/phpstan/phpstan-1.7.7.neon @@ -5,3 +5,4 @@ parameters: ignoreErrors: - '#Parameter \#1 \$share of static method ShopCore::addSqlRestriction\(\) expects int, false given.#' - '#Parameter \#1 \$share of static method ShopCore::addSqlRestriction\(\) expects int, string given.#' + - '#Parameter \#1 \$variable of method ModuleCore::getPermission\(\) expects array, string given.#' diff --git a/tests/phpstan/phpstan-1.7.8.neon b/tests/phpstan/phpstan-1.7.8.neon index b5f0783..6d53937 100644 --- a/tests/phpstan/phpstan-1.7.8.neon +++ b/tests/phpstan/phpstan-1.7.8.neon @@ -5,3 +5,4 @@ parameters: ignoreErrors: - '#Parameter \#1 \$share of static method ShopCore::addSqlRestriction\(\) expects int, false given.#' - '#Parameter \#1 \$share of static method ShopCore::addSqlRestriction\(\) expects int, string given.#' + - '#Parameter \#1 \$variable of method ModuleCore::getPermission\(\) expects array, string given.#' From e9dc0e6658d303c9838fcba4530c443043e812ae Mon Sep 17 00:00:00 2001 From: Touxten <156076965+Touxten@users.noreply.github.com> Date: Tue, 17 Jun 2025 18:02:07 +0200 Subject: [PATCH 3/8] Fix Workflow --- .github/workflows/php.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/php.yml b/.github/workflows/php.yml index f57b6a5..252ce20 100644 --- a/.github/workflows/php.yml +++ b/.github/workflows/php.yml @@ -45,7 +45,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') }} @@ -81,7 +81,7 @@ jobs: # 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 From 4c3215fef49de75fe51971b02c2142761f34bc99 Mon Sep 17 00:00:00 2001 From: Touxten <156076965+Touxten@users.noreply.github.com> Date: Tue, 17 Jun 2025 18:08:02 +0200 Subject: [PATCH 4/8] Update php.yml --- .github/workflows/php.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/php.yml b/.github/workflows/php.yml index 252ce20..80364fd 100644 --- a/.github/workflows/php.yml +++ b/.github/workflows/php.yml @@ -74,7 +74,7 @@ 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') }} From 9a187d02ce026cb64278207aec04ada38a1f5eb7 Mon Sep 17 00:00:00 2001 From: Touxten <156076965+Touxten@users.noreply.github.com> Date: Tue, 17 Jun 2025 18:29:28 +0200 Subject: [PATCH 5/8] Update php.yml --- .github/workflows/php.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/php.yml b/.github/workflows/php.yml index 80364fd..6c6f705 100644 --- a/.github/workflows/php.yml +++ b/.github/workflows/php.yml @@ -62,7 +62,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - presta-versions: ['1.7.7', '1.7.8', '8.0', 'latest'] + presta-versions: ['1.7.7', '1.7.8', '8.2', 'latest'] steps: - name: Setup PHP uses: shivammathur/setup-php@v2 From 3488e28590be72b8e214bfa791c00989b6666739 Mon Sep 17 00:00:00 2001 From: Touxten <156076965+Touxten@users.noreply.github.com> Date: Tue, 17 Jun 2025 18:37:34 +0200 Subject: [PATCH 6/8] Update php.yml --- .github/workflows/php.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/php.yml b/.github/workflows/php.yml index 6c6f705..80364fd 100644 --- a/.github/workflows/php.yml +++ b/.github/workflows/php.yml @@ -62,7 +62,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - presta-versions: ['1.7.7', '1.7.8', '8.2', 'latest'] + presta-versions: ['1.7.7', '1.7.8', '8.0', 'latest'] steps: - name: Setup PHP uses: shivammathur/setup-php@v2 From b0133894fe832a458a7e79ae2fe060b74c74d3db Mon Sep 17 00:00:00 2001 From: Alexis Guyomar Date: Mon, 2 Mar 2026 17:37:51 +0100 Subject: [PATCH 7/8] github: new workflow to add issue to project --- .github/workflows/add-issue-to-project.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 .github/workflows/add-issue-to-project.yml diff --git a/.github/workflows/add-issue-to-project.yml b/.github/workflows/add-issue-to-project.yml new file mode 100644 index 0000000..cfa4ba3 --- /dev/null +++ b/.github/workflows/add-issue-to-project.yml @@ -0,0 +1,13 @@ +name: Add Issue to Project + +on: + issues: + types: [ opened ] + +jobs: + add-to-project: + uses: PrestaShop/.github/.github/workflows/reusable-add-to-project.yml@master + with: + project-number: 47 + secrets: + TOKEN: ${{ secrets.JARVIS_TOKEN }} From 21253e7b3f0eb4125bf01ae4ee8a50b361f70e2b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20L=C5=93uillet?= Date: Mon, 25 May 2026 11:48:37 +0200 Subject: [PATCH 8/8] Bump module to 2.1.2 --- config.xml | 2 +- dashactivity.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/config.xml b/config.xml index 4bcaae8..1e5e281 100644 --- a/config.xml +++ b/config.xml @@ -2,7 +2,7 @@ dashactivity - + diff --git a/dashactivity.php b/dashactivity.php index 37c31f7..c9746a1 100755 --- a/dashactivity.php +++ b/dashactivity.php @@ -35,7 +35,7 @@ public function __construct() { $this->name = 'dashactivity'; $this->tab = 'administration'; - $this->version = '2.1.1'; + $this->version = '2.1.2'; $this->author = 'PrestaShop'; parent::__construct();