forked from mautic/mautic
-
Notifications
You must be signed in to change notification settings - Fork 2
Backport 5.2.7 changes to 6.0 #44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
kuzmany
wants to merge
231
commits into
6.0
Choose a base branch
from
backport-5.2.7-to-6.0
base: 6.0
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* Improve grammar for unhide * Fix test
Co-authored-by: Ruth Cheesley <ruth@ruthcheesley.co.uk>
* [UI] Replaces table action button `arrow-down` with `more-2` icon (mautic#13841) * [UI] Replaces table action button `arrow-down` with `more-2` icon This replaces the icon for the action toggle button in tables (e.g. contact list table or segment list table) with a 3 dot icon. The previous arrow down icon indicates that an collapsed element would get unfolded/shown. This is not the case in these tables. The button shows more actions. In any UI that I know a 3 dot icon is used for that. The arrow down icon would be more suitable if it would show more details on click. Hence, this PR. * TASK: Reverts change for `page_actions.html.twig` Co-authored-by: Anderson, from Dropsolid <116097999+andersonjeccel@users.noreply.github.com> --------- Co-authored-by: Anderson, from Dropsolid <116097999+andersonjeccel@users.noreply.github.com> * add js code to hide profile pic if missing (mautic#13838) * Segment membership as a new filter for dynamic email content (mautic#13528) * Merge pull request mautic#1088 from mautic-inc/MAUT-4688 Maut 4688 - Use segment membership as a filter for dynamic content in email * Changes needed after rebase to M5 * Merge pull request mautic#1407 from acquia/MAUT-5729 MAUT-5729 Dynamic Content Error - Segment Membership filter not showing correct content * Fixing STAN * CS fixes * Test fix * test fix part 2 * Adding back JS methods removed in a bad conflict resolution --------- Co-authored-by: Lukáš Drahý <lukas@drahy.net> Co-authored-by: Rohit Pavaskar <66303837+rohitp19@users.noreply.github.com> Co-authored-by: Ruth Cheesley <ruth@ruthcheesley.co.uk> * [UI] Increased icon size (mautic#13825) * increased icon size * decrease by 1px * Make the search regular expression match both "&" and "&" for link replacement within an email body (mautic#13858) * Guide users to build optimized segments (mautic#13860) * Merge pull request mautic#2172 from acquia/MAUT-11343 MAUT-11343 : Guide users to build optimized segments * fix twig file issue * Apply suggestions from code review Co-authored-by: John Linhart <admin@escope.cz> * push suggested changes --------- Co-authored-by: John Linhart <admin@escope.cz> * fix CSS flexbox broken in campaign insert clone view * Revert "[UI] Replaces table action button `arrow-down` with `more-2` icon (mautic#13841)" This reverts commit fadcf26. * Revert "Segment membership as a new filter for dynamic email content (mautic#13528)" This reverts commit 71031b7. * Revert "[UI] Increased icon size (mautic#13825)" This reverts commit c00df3c. * Revert "Make the search regular expression match both "&" and "&" for link replacement within an email body (mautic#13858)" This reverts commit d3e6ceb. * Revert "Guide users to build optimized segments (mautic#13860)" This reverts commit bdabc26. * Revert "add js code to hide profile pic if missing (mautic#13838)" This reverts commit 76dd7d6. --------- Co-authored-by: putzwasser <26040044+putzwasser@users.noreply.github.com> Co-authored-by: John Linhart <admin@escope.cz> Co-authored-by: Lukáš Drahý <lukas@drahy.net> Co-authored-by: Rohit Pavaskar <66303837+rohitp19@users.noreply.github.com> Co-authored-by: Ruth Cheesley <ruth@ruthcheesley.co.uk> Co-authored-by: Miroslav Fedeleš <miroslav.fedeles@gmail.com> Co-authored-by: Saurabh Gupta <48244990+dadarya0@users.noreply.github.com>
mautic#10306) * fix: [DPMMA-1020] fix getLookupChoiceListAction for search with special characters * fix: [DPMMA-1020] phpstan
* fix: [DPMMA-2661] Correct form mapper Mautic 5 * feat: [DPMMA-2661] Correct CSFixer
…tracking script (mautic#13859) This fixes mautic#13355 This removes the HTML escaping logic in the onConfigSave method of `ConfigSubscriber`. This change prevents the UI from displaying escaped HTML in the custom tracking JS field after saving the form. Previously, the form erroneously escaped HTML entities. By removing this code, users will now see the original HTML as expected when they revisit the form. The main issue, however, was that re-saving meant saving escaped HTML which would break inserting the tracking HTML code. **Before** 1. Add custom HTML in `Configuration > Landing Page Settings > Analytics script (i.e. Google Analytics) ` 2. Save 3. Open this view again → see escaped HTML 4. Save again 5. Open a landing page and see escaped HTML tracking code injected. **After** 1. Add custom HTML in `Configuration > Landing Page Settings > Analytics script (i.e. Google Analytics) ` 2. Save 3. Open this view again → see unescaped HTML 4. Save again 5. Open a landing page and see correct HTML tracking code injected.
…es, load the custom properties
…eturn functionality in the PointModel. Let me break down what the tests verify: 1. `testTriggerActionReturnsEarlyWhenNoAvailablePoints`: - Checks that when no points are available for a given type - The method returns early - The IP lookup helper is never called 2. `testTriggerActionContinuesWhenPointsAreAvailable`: - Checks that when points are available for a given type - The method continues execution - The IP lookup helper is called The test uses mocking to isolate the behavior and verify the specific interactions. Recommendations: - The tests look comprehensive for the specific change - No additional files are needed at this point Would you like me to elaborate on any part of the test or discuss any specific aspects of the implementation?
…arnings in PointModelTest
Appends the object ID in brackets after the name to ensure clarity. Applied changes across multiple areas: Segments, Campaigns and others. Add new acceptance Test for Multiselect Field Fix.
…oad-Assets-with-Non-Default-File-Extensions Fix: Unable to upload assets with non-default file extensions
…et-token Check permission for viewown not viewother in getTokens.
…f-points-log-exists
- Added testPointActionEarlyReturnWhenNoPointsAvailable() method - Tests that PointModel::triggerAction() returns early when no published point actions exist - Verifies points remain unchanged (0) when no point actions are configured - Covers the optimization added in the PR fix
…tors-5 Fix dynamic content blocks showing multiple editors [mautic 5]
Clear Swift_Message metadata after sending to prevent memory accumulation when sending multiple emails in batch operations.
This test ensures that the clearMetadata() call in the send() method properly clears message metadata to prevent memory leaks during batch email operations.
…metadata Fix email sending memory leak by clearing message metadata
fix app callback when push_id is empty
Report saved with proper options.
…th-lead-data Fix send email preview with lead data
…points-log-exists check if points available
Increment version to 5.2.7
# Conflicts: # app/bundles/CoreBundle/Test/MauticMysqlTestCase.php # app/bundles/DynamicContentBundle/EventListener/DynamicContentSubscriber.php # app/bundles/DynamicContentBundle/Helper/DynamicContentHelper.php # app/bundles/DynamicContentBundle/Tests/Unit/EventListener/DynamicContentSubscriberTest.php # app/bundles/EmailBundle/Controller/EmailController.php # app/bundles/EmailBundle/Controller/PublicController.php # app/bundles/EmailBundle/Tests/Helper/MailHelperTest.php # app/bundles/EmailBundle/Tests/Model/EmailModelFunctionalTest.php # app/bundles/LeadBundle/Controller/LeadController.php # app/release_metadata.json
- Add Response return type to EmailController::sendExampleAction - Remove redundant PHPDoc in FieldController::cloneAction - Add JsonResponse|Response return type to LeadController::emailAction
- Fix PreviewFunctionalTest::testPreviewEmailForContactWithPrimaryCompany by getting User entity from repository instead of passing string to loginUser - Fix MailHelperTest::testClearMetadataAfterSend by adding missing mockFactory property and updating MailHelper constructor call with all required parameters
The test was failing because it was checking for messages after they were consumed and removed by messenger:consume. The fix checks for the queued message before consumption, which properly validates that the delayed transport functionality is working. - Remove flawed logic that checked for messages after messenger:consume - Add proper validation by checking for queued messages before consumption - This correctly tests the delayed transport feature from PR mautic#15052 - Files existence is validated at the appropriate time in the test flow
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
This PR backports changes from version 5.2.7 to the 6.0 branch.
Changes included: