Skip to content

Commit b4af625

Browse files
committed
Merge branch '4.0' into 4.x
2 parents bffeb58 + 9e6c392 commit b4af625

File tree

5 files changed

+17
-12
lines changed

5 files changed

+17
-12
lines changed

Diff for: .github/workflows/codeception.yml

+4-6
Original file line numberDiff line numberDiff line change
@@ -16,22 +16,20 @@ env:
1616
PIMCORE_PROJECT_ROOT: ${{ github.workspace }}
1717
APP_ENV: test
1818
PIMCORE_TEST: 1
19-
# PIMCORE_TEST_DB_DSN: "mysql://[email protected]:33006/pimcore_test"
19+
PIMCORE_TEST_DB_DSN: "mysql://[email protected]:33006/pimcore_test"
2020
PIMCORE_TEST_REDIS_DSN: "redis://127.0.0.1:63379"
2121

2222
jobs:
2323
codeception-tests:
2424
name: "Codeception tests"
2525
runs-on: "ubuntu-20.04"
2626
continue-on-error: ${{ matrix.experimental }}
27-
env:
28-
PIMCORE_TEST_DB_DSN: "mysql://[email protected]:33006/pimcore_test?serverVersion=${{ matrix.server_version }}"
2927
strategy:
3028
matrix:
3129
include:
32-
- { php-version: 8.1, database: "mariadb:10.7", server_version: "10.7.7-MariaDB-1:10.7.7+maria~ubu2004", dependencies: lowest, experimental: false }
33-
- { php-version: 8.2, database: "mariadb:10.7", server_version: "10.7.7-MariaDB-1:10.7.7+maria~ubu2004", dependencies: highest, experimental: false }
34-
- { php-version: 8.2, database: "mariadb:10.7", server_version: "10.7.7-MariaDB-1:10.7.7+maria~ubu2004", dependencies: highest, pimcore_version: "11.x-dev as 11.0.0", experimental: true }
30+
- { php-version: 8.1, database: "mariadb:10.3", dependencies: lowest, experimental: false }
31+
- { php-version: 8.2, database: "mariadb:10.11", dependencies: highest, experimental: false }
32+
- { php-version: 8.2, database: "mariadb:10.11", dependencies: highest, pimcore_version: "11.x-dev as 11.0.0", experimental: true }
3533

3634
services:
3735
redis:

Diff for: doc/30_Personalization/05_Example_Usecases.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ doing so, a target group with the same name is automatically created and linked
1313
When using targeting rules with the `Assign Target Group` action, besides assigning target group to the current visitor,
1414
there are also options to store the connected segment to the current customer and track activities.
1515

16-
Storing the segement to the customer is necessary to persist this information for later visits of the customer, especially
16+
Storing the segment to the customer is necessary to persist this information for later visits of the customer, especially
1717
when the customer visits from a different device.
1818

1919
![VIP Customer Rule](../img/assign-target-group-vip-customer.jpg)

Diff for: src/Newsletter/Command/NewsletterSyncCommand.php

+5-1
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,11 @@ protected function execute(InputInterface $input, OutputInterface $output)
8989
if ($input->getOption('customer-data-sync') || $input->getOption('all-customers')) {
9090
$lockKey = 'plugin_cmf_newsletter_sync_queue';
9191

92-
$this->lock($lockKey);
92+
if (!$this->lock($lockKey)) {
93+
$output->writeln('The command is already running in another process.');
94+
95+
return 0;
96+
}
9397

9498
if (!$input->getOption('force-segments')) {
9599
$this->newsletterManager->syncSegments();

Diff for: src/Resources/public/admin/js/cmf.js

+6-3
Original file line numberDiff line numberDiff line change
@@ -854,9 +854,12 @@ app.SearchFilter.DateRangePicker = (function () {
854854
$(document).ready(function() {
855855
window.app.init($('body'));
856856

857-
$('#customerDuplicatesMerge').on('click', function () {
858-
const duplicateIds = $('#customerDuplicatesMerge').data('duplicate-ids');
859-
new window.top.pimcore.plugin.objectmerger.panel(duplicateIds[0], duplicateIds[1]);
857+
const duplicates = $('.customer-duplicates-merge');
858+
$.each(duplicates , function(index,duplicate) {
859+
duplicate.addEventListener('click', (event) => {
860+
const duplicateIds = JSON.parse(duplicate.dataset.duplicateIds);
861+
new window.top.pimcore.plugin.objectmerger.panel(duplicateIds[0], duplicateIds[1]);
862+
});
860863
});
861864
});
862865
})(jQuery);

Diff for: src/Resources/views/admin/duplicates/list.html.twig

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
<tbody id="customerduplicates_{{ duplicate.getDuplicateCustomers[0].getId() }}_{{ duplicate.getDuplicateCustomers[1].getId() }}" class="js-duplicates-item duplicates-item" >
3737
<tr>
3838
<td colspan="99">
39-
<a class="btn btn-primary btn-xs pull-right" id="customerDuplicatesMerge" data-duplicate-ids='[{{ duplicate.getDuplicateCustomers[0].getId() }},{{ duplicate.getDuplicateCustomers[1].getId() }}]'>
39+
<a class="btn btn-primary btn-xs pull-right customer-duplicates-merge" data-duplicate-ids='[{{ duplicate.getDuplicateCustomers[0].getId() }},{{ duplicate.getDuplicateCustomers[1].getId() }}]'>
4040
{{ 'cmf_duplicates_merge' | trans({}, 'admin') }}
4141
</a>
4242
{% if(not app.request.get('declined')) %}

0 commit comments

Comments
 (0)