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
90 changes: 45 additions & 45 deletions .github/workflows/ide.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,48 +9,48 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1

############################################################################
- name: Set up PHP
uses: shivammathur/setup-php@v2
with:
php-version: '7.2'
tools: composer, prestissimo, pecl
coverage: none

#https://github.com/actions/cache/blob/master/examples.md#php---composer
- name: Cache composer packages
id: composer-cache
run: |
composer config cache-files-dir
echo "::set-output name=dir::$(composer config cache-files-dir)"
- uses: actions/cache@v4
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-composer-

- name: Update project dependencies
run: |
composer install --prefer-dist --no-progress --no-suggest
composer dump-autoload --optimize
rm -rf libs/bin
############################################################################

- name: Run PHPStorm
uses: supercid/action-phpstorm@master
with:
target: .
profile: ./.idea/inspectionProfiles/CI.xml
output: ./output
verbosity: v2
scope: Inspection

- name: Archive inspection results
if: always()
uses: actions/upload-artifact@v4
with:
name: inspection-results
path: output
- uses: actions/checkout@v1

############################################################################
- name: Set up PHP
uses: shivammathur/setup-php@v2
with:
php-version: '7.2'
tools: composer, prestissimo, pecl
coverage: none

#https://github.com/actions/cache/blob/master/examples.md#php---composer
- name: Cache composer packages
id: composer-cache
run: |
composer config cache-files-dir
echo "::set-output name=dir::$(composer config cache-files-dir)"
- uses: actions/cache@v4
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-composer-

- name: Update project dependencies
run: |
composer install --prefer-dist --no-progress --no-suggest
composer dump-autoload --optimize
rm -rf libs/bin
############################################################################

- name: Run PHPStorm
uses: Nosto/action-phpstorm@master
with:
target: .
profile: ./.idea/inspectionProfiles/CI.xml
output: ./output
verbosity: v2
scope: Inspection

- name: Archive inspection results
if: always()
uses: actions/upload-artifact@v4
with:
name: inspection-results
path: output
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
All notable changes to this project will be documented in this file.
This project adheres to Semantic Versioning(http://semver.org/).

## 4.4.4
- Fix customer email exposure in front-end tagging

## 4.4.3
- Add compatibility with Prestashop 8.2

Expand Down
1 change: 0 additions & 1 deletion classes/models/NostoCustomer.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ public static function loadData(Customer $customer)
$nostoCustomer = new NostoCustomer();
$nostoCustomer->setFirstName($customer->firstname);
$nostoCustomer->setLastName($customer->lastname);
$nostoCustomer->setEmail($customer->email);
$nostoCustomer->setMarketingPermission($customer->newsletter);
try {
$nostoCustomer->populateCustomerReference($customer);
Expand Down
1 change: 0 additions & 1 deletion classes/models/order/NostoOrderBuyer.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ public static function loadData(Customer $customer, Order $order)
$nostoBuyer = new NostoOrderBuyer();
$nostoBuyer->setFirstName($customer->firstname);
$nostoBuyer->setLastName($customer->lastname);
$nostoBuyer->setEmail($customer->email);
$nostoBuyer->setMarketingPermission($customer->newsletter);

$billingAddressId = $order->id_address_invoice;
Expand Down
2 changes: 1 addition & 1 deletion nostotagging.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ class NostoTagging extends Module
*
* @var string
*/
const PLUGIN_VERSION = '4.4.3';
const PLUGIN_VERSION = '4.4.4';

/**
* Internal name of the Nosto plug-in
Expand Down
Loading