Skip to content

Commit 61aa91e

Browse files
Merge branch '7.x' into fix-ckeditor-modal-issue
2 parents e3095a9 + d03284e commit 61aa91e

File tree

132 files changed

+1805
-1604
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

132 files changed

+1805
-1604
lines changed

.all-contributorsrc

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1580,6 +1580,15 @@
15801580
"contributions": [
15811581
"code"
15821582
]
1583+
},
1584+
{
1585+
"login": "OlgaMarchuk",
1586+
"name": "OlgaMarchuk",
1587+
"avatar_url": "https://avatars.githubusercontent.com/u/219189660?v=4",
1588+
"profile": "https://github.com/OlgaMarchuk",
1589+
"contributions": [
1590+
"userTesting"
1591+
]
15831592
}
15841593
],
15851594
"contributorsPerLine": 7,

.github/ISSUE_TEMPLATE/BUG-REPORT.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ body:
2424
label: Mautic Series
2525
description: What series of Mautic you are using? Please test to reproduce your bug with the [latest stable version of Mautic](https://www.mautic.org/mautic-releases) which might contain new fixes. If you are able, please also check the latest development release.
2626
options:
27+
- 7.0.x series
2728
- 6.0.x series
2829
- 5.2.x series
2930
- 5.1.x series (not supported)

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -346,6 +346,7 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
346346
<td align="center" valign="top" width="14.28%"><a href="https://github.com/ElPollero"><img src="https://avatars.githubusercontent.com/u/130322184?v=4?s=100" width="100px;" alt="ElPollero"/><br /><sub><b>ElPollero</b></sub></a><br /><a href="https://github.com/mautic/mautic/commits?author=ElPollero" title="Code">💻</a></td>
347347
<td align="center" valign="top" width="14.28%"><a href="http://pelbox.com"><img src="https://avatars.githubusercontent.com/u/6670191?v=4?s=100" width="100px;" alt="Gagandeep Singh"/><br /><sub><b>Gagandeep Singh</b></sub></a><br /><a href="https://github.com/mautic/mautic/commits?author=pelbox" title="Code">💻</a></td>
348348
<td align="center" valign="top" width="14.28%"><a href="https://github.com/PedroLoureiro1"><img src="https://avatars.githubusercontent.com/u/116733776?v=4?s=100" width="100px;" alt="PedroLoureiro1"/><br /><sub><b>PedroLoureiro1</b></sub></a><br /><a href="https://github.com/mautic/mautic/commits?author=PedroLoureiro1" title="Code">💻</a></td>
349+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/OlgaMarchuk"><img src="https://avatars.githubusercontent.com/u/219189660?v=4?s=100" width="100px;" alt="OlgaMarchuk"/><br /><sub><b>OlgaMarchuk</b></sub></a><br /><a href="#userTesting-OlgaMarchuk" title="User Testing">📓</a></td>
349350
</tr>
350351
</tbody>
351352
</table>

UPGRADE-7.0.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@
99
- The ability to update Mautic in the browser (via user interface) has been removed. To update Mautic, use the **command line** instead.
1010
- The API Limiter was removed temporarily. Shoud be added back before the M7-stable is released. https://github.com/mautic/mautic/pull/14876
1111

12+
## Removed code
13+
14+
- Deprecated class `Mautic\MessengerBundle\MessageHandler\TestHandler` removed with no replacement.
15+
1216
## Removed Composer dependencies
1317
- `symfony/yaml` see https://github.com/mautic/mautic/pull/14850
1418
- `symfony/security-acl` see https://github.com/mautic/mautic/pull/14850
@@ -21,7 +25,8 @@
2125
## BC breaks in the code
2226

2327
### PHP
24-
- Removed `\Mautic\DashboardBundle\Dashboard\Widget::FORMAT_MYSQL` constant. Use `DateTimeHelper::FORMAT_DB_DATE_ONLY` instead.
28+
- Removed `Mautic\DashboardBundle\Dashboard\Widget::FORMAT_MYSQL` constant. Use `DateTimeHelper::FORMAT_DB_DATE_ONLY` instead.
29+
- Removed `Mautic\ApiBundle\Security\OAuth2\Firewall::OAuthListener` class as it was empty. Use `FOS\OAuthServerBundle\Security\Firewall\OAuthListener` instead.
2530

2631
### Javascript
2732
- Removed `Mautic.insertTextInEditor` function. Use `Mautic.insertHtmlInEditor` instead.

app/assets/scaffold/files/package-lock.json

Lines changed: 4 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/bundles/ApiBundle/Config/config.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,6 @@
8686
],
8787
],
8888
],
89-
'fos_oauth_server.security.authentication.listener.class' => Mautic\ApiBundle\Security\OAuth2\Firewall\OAuthListener::class,
9089
'mautic.validator.oauthcallback' => [
9190
'class' => Mautic\ApiBundle\Form\Validator\Constraints\OAuthCallbackValidator::class,
9291
'tag' => 'validator.constraint_validator',

app/bundles/ApiBundle/Security/OAuth2/Firewall/OAuthListener.php

Lines changed: 0 additions & 7 deletions
This file was deleted.

app/bundles/ApiBundle/Tests/EventListener/ApiSubscriberTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
use Mautic\CoreBundle\Tests\CommonMocks;
88
use Mautic\CoreBundle\Translation\Translator;
99
use PHPUnit\Framework\MockObject\MockObject;
10+
use Symfony\Component\HttpFoundation\HeaderBag;
1011
use Symfony\Component\HttpFoundation\JsonResponse;
11-
use Symfony\Component\HttpFoundation\ParameterBag;
1212
use Symfony\Component\HttpFoundation\Request;
1313
use Symfony\Component\HttpKernel\Event\RequestEvent;
1414

@@ -43,7 +43,7 @@ protected function setUp(): void
4343
$this->coreParametersHelper = $this->createMock(CoreParametersHelper::class);
4444
$this->translator = $this->createMock(Translator::class);
4545
$this->request = $this->createMock(Request::class);
46-
$this->request->headers = new ParameterBag();
46+
$this->request->headers = new HeaderBag();
4747
$this->event = $this->createMock(RequestEvent::class);
4848
$this->subscriber = new ApiSubscriber(
4949
$this->coreParametersHelper,

app/bundles/CacheBundle/Command/ClearCacheCommand.php

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,18 @@
55
namespace Mautic\CacheBundle\Command;
66

77
use Mautic\CacheBundle\Cache\CacheProviderInterface;
8+
use Symfony\Component\Console\Attribute\AsCommand;
89
use Symfony\Component\Console\Command\Command;
910
use Symfony\Component\Console\Input\InputInterface;
1011
use Symfony\Component\Console\Output\OutputInterface;
1112

1213
/**
1314
* CLI Command to clear the application cache.
1415
*/
16+
#[AsCommand(
17+
name: 'mautic:cache:clear',
18+
description: "Clears Mautic's cache"
19+
)]
1520
class ClearCacheCommand extends Command
1621
{
1722
public function __construct(
@@ -20,15 +25,8 @@ public function __construct(
2025
parent::__construct();
2126
}
2227

23-
protected function configure(): void
24-
{
25-
$this->setName('mautic:cache:clear');
26-
}
27-
2828
protected function execute(InputInterface $input, OutputInterface $output): int
2929
{
3030
return (int) !$this->cacheProvider->clear();
3131
}
32-
33-
protected static $defaultDescription = 'Clears Mautic\'s cache';
3432
}

app/bundles/CampaignBundle/Assets/js/campaign.js

Lines changed: 37 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -136,34 +136,6 @@ Mautic.campaignOnLoad = function (container, response) {
136136
Mautic.processBuilderErrors(response);
137137
}
138138

139-
const campaignEmailStats = mQuery(container).find('[data-load="campaign-email-stats"]').first();
140-
if(campaignEmailStats.length) {
141-
mQuery(campaignEmailStats).on('click', () => {
142-
const $campaignWeekdaysContainer = mQuery('[data-campaign-email-stats-weekdays]');
143-
const $campaignHoursContainer = mQuery('[data-campaign-email-stats-hours]');
144-
145-
if ($campaignWeekdaysContainer.find('canvas').length === 0) {
146-
mQuery.ajax({
147-
url: $campaignWeekdaysContainer.data('campaign-email-stats-weekdays'),
148-
success: function (response) {
149-
$campaignWeekdaysContainer.html(response);
150-
Mautic.renderCharts($campaignWeekdaysContainer);
151-
}
152-
});
153-
}
154-
155-
if ($campaignHoursContainer.find('canvas').length === 0) {
156-
mQuery.ajax({
157-
url: $campaignHoursContainer.data('campaign-email-stats-hours'),
158-
success: function (response) {
159-
$campaignHoursContainer.html(response);
160-
Mautic.renderCharts($campaignHoursContainer);
161-
}
162-
});
163-
}
164-
});
165-
}
166-
167139
// update the cloned event info when storage is updated from different tab
168140
window.addEventListener('storage', function(event) {
169141
if (event.key === 'mautic_campaign_event_clone') {
@@ -180,6 +152,34 @@ Mautic.campaignOnLoad = function (container, response) {
180152
});
181153
}
182154

155+
const campaignEmailStats = mQuery(container).find('[data-load="campaign-email-stats"]').first();
156+
if(campaignEmailStats.length) {
157+
mQuery(campaignEmailStats).on('click', () => {
158+
const $campaignWeekdaysContainer = mQuery('[data-campaign-email-stats-weekdays]');
159+
const $campaignHoursContainer = mQuery('[data-campaign-email-stats-hours]');
160+
161+
if ($campaignWeekdaysContainer.find('canvas').length === 0) {
162+
mQuery.ajax({
163+
url: $campaignWeekdaysContainer.data('campaign-email-stats-weekdays'),
164+
success: function (response) {
165+
$campaignWeekdaysContainer.html(response);
166+
Mautic.renderCharts($campaignWeekdaysContainer);
167+
}
168+
});
169+
}
170+
171+
if ($campaignHoursContainer.find('canvas').length === 0) {
172+
mQuery.ajax({
173+
url: $campaignHoursContainer.data('campaign-email-stats-hours'),
174+
success: function (response) {
175+
$campaignHoursContainer.html(response);
176+
Mautic.renderCharts($campaignHoursContainer);
177+
}
178+
});
179+
}
180+
});
181+
}
182+
183183
Mautic.campaignAuditlogOnLoad(container, response);
184184
};
185185

@@ -2286,11 +2286,19 @@ Mautic.highlightJumpTarget = function(event, el) {
22862286
if (highlightedAlready) {
22872287
parentEventElement.data('highlighted', false);
22882288
overlay.hide();
2289+
overlay.off('click.closejump');
22892290
parentEventElement.css("z-index", 1010);
22902291
jumpTarget.css("z-index", 1010);
22912292
} else {
2293+
if (mQuery('[data-highlighted="true"]').length) {
2294+
mQuery('[data-highlighted="true"]').find('.highlight-jump-target').click();
2295+
}
2296+
22922297
parentEventElement.data('highlighted', true);
22932298
overlay.show();
2299+
overlay.on('click.closejump', function() {
2300+
element.click();
2301+
});
22942302
parentEventElement.css("z-index", 2010);
22952303
jumpTarget.css("z-index", 2010);
22962304
}
@@ -2465,4 +2473,4 @@ Mautic.campaignAuditlogOnLoad = function (container, response) {
24652473
}
24662474
});
24672475
});
2468-
};
2476+
};

0 commit comments

Comments
 (0)