Skip to content
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

[DPMMA-2341] Fixed missing preference center #12829

Merged
merged 5 commits into from Nov 6, 2023

Conversation

annamunk
Copy link
Member

Q A
Bug fix? (use the a.b branch) [✅]
New feature/enhancement? (use the a.x branch) [❌]
Deprecations? [❌]
BC breaks? (use the c.x branch) [❌]
Automated tests included? [❌]
Related user documentation PR URL mautic/mautic-documentation#...
Related developer documentation PR URL mautic/developer-documentation#...
Issue(s) addressed #12828

Description:

Steps to test this PR:

  1. Open this PR on Gitpod or pull down for testing locally (see docs on testing PRs here)
  2. Log in to Mautic using an account that has page:preference_center:viewown and page:preference_center:viewother permissions.
  3. Create or edit email.
  4. Find the "Preference Center Page" input.

@annamunk annamunk added bug Issues or PR's relating to bugs landing-pages Anything related to landing pages email Anything related to email regression A bug that broke something in the last release labels Oct 26, 2023
Copy link
Contributor

@mollux mollux left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@annamunk

while the code has the correct outcome, it differs from the approach in M4, see https://github.com/mautic/mautic/blob/4.4.10/app/bundles/EmailBundle/Views/Email/form.html.php#L224...L227

in M4 one of the 2 permissions was enough, in M5 both are needed

@mollux mollux linked an issue Oct 31, 2023 that may be closed by this pull request
1 task
Co-authored-by: Mattias Michaux <mattias.michaux@gmail.com>
Copy link

codecov bot commented Nov 2, 2023

Codecov Report

Merging #12829 (271c39c) into 5.x (c519a7b) will increase coverage by 0.00%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##                5.x   #12829   +/-   ##
=========================================
  Coverage     58.67%   58.68%           
  Complexity    33631    33631           
=========================================
  Files          2181     2181           
  Lines        101824   101824           
=========================================
+ Hits          59750    59751    +1     
+ Misses        42074    42073    -1     

see 1 file with indirect coverage changes

@annamunk annamunk requested a review from mollux November 2, 2023 13:16
@annamunk
Copy link
Member Author

annamunk commented Nov 2, 2023

@mollux thanks for catching it! I commited the change.

Copy link
Member

@kuzmany kuzmany left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I noticed same during the build #12860
This fixed it 👍

@kuzmany kuzmany added the pending-test-confirmation PR's that require one test before they can be merged label Nov 3, 2023
Copy link
Contributor

@volha-pivavarchyk volha-pivavarchyk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works well.

Thanks. I faced the same problem some time ago.

@kuzmany kuzmany added ready-to-commit PR's with 2 successful tests, 1 approval, automated tests and docs and is ready to be merged and removed pending-test-confirmation PR's that require one test before they can be merged labels Nov 4, 2023
@escopecz escopecz added this to the 5.0-Release Candidate-1 milestone Nov 6, 2023
@escopecz escopecz merged commit 5c72234 into mautic:5.x Nov 6, 2023
14 checks passed
@mautibot
Copy link

This pull request has been mentioned on Mautic Forums. There might be relevant details there:

https://forum.mautic.org/t/announcing-the-mautic-5-release-candidate/29967/1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issues or PR's relating to bugs email Anything related to email landing-pages Anything related to landing pages ready-to-commit PR's with 2 successful tests, 1 approval, automated tests and docs and is ready to be merged regression A bug that broke something in the last release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

"Preference Center Page" input is missing in the email form
6 participants