Skip to content

Fix: Problem with the newsletter subscription module - #114

Merged
boherm merged 1 commit into
PrestaShop:devfrom
Codencode:fix-38446-Problem-with-the-newsletter-subscription-module
Apr 28, 2025
Merged

Fix: Problem with the newsletter subscription module#114
boherm merged 1 commit into
PrestaShop:devfrom
Codencode:fix-38446-Problem-with-the-newsletter-subscription-module

Conversation

@Codencode

Copy link
Copy Markdown
Member
Questions Answers
Description? see: PrestaShop/PrestaShop#38446
Type? bug fix
BC breaks? no
Deprecations? no
Fixed ticket? Fixes PrestaShop/PrestaShop#38446.
How to test? see: PrestaShop/PrestaShop#38446

@Codencode

Copy link
Copy Markdown
Member Author

@kpodemski
have you had a chance to review this PR?

Thanks

@boherm

boherm commented Apr 22, 2025

Copy link
Copy Markdown
Member

Hi @Codencode!
Your CI is totally red!
I made a fix (#115) to avoid this in this repository.

Can you need rebase your branch? 🙏

@Codencode
Codencode force-pushed the fix-38446-Problem-with-the-newsletter-subscription-module branch from f21ee01 to 9eab6e0 Compare April 22, 2025 16:09
@Codencode

Copy link
Copy Markdown
Member Author

Hi @boherm,
Yes, I had noticed that everything was red, but I didn’t understand why—I thought it might be a temporary issue.
I performed the rebase and hope I did it correctly.

Thanks a lot!

@boherm boherm moved this from Ready for review to Need 2nd approval in PR Dashboard Apr 25, 2025
@boherm boherm moved this from Need 2nd approval to To be tested in PR Dashboard Apr 25, 2025
@paulnoelcholot paulnoelcholot self-assigned this Apr 28, 2025
@paulnoelcholot

Copy link
Copy Markdown

Hello @Codencode,

I tested your PR and it's good for me! 🎉

Thanks!

PR-2025-04-28_15.44.46.mp4

@paulnoelcholot paulnoelcholot added QA ✔️ Status: Check done, Code approved and removed waiting for QA labels Apr 28, 2025
@boherm
boherm merged commit f50a787 into PrestaShop:dev Apr 28, 2025
@boherm boherm added this to the 2.8.3 milestone Apr 28, 2025
@github-project-automation github-project-automation Bot moved this from To be tested to Merged in PR Dashboard Apr 28, 2025
@Codencode
Codencode deleted the fix-38446-Problem-with-the-newsletter-subscription-module branch April 28, 2025 15:45
@kpodemski

Copy link
Copy Markdown
Contributor

Hello @Codencode

I checked the old issue, this one PrestaShop/PrestaShop#17097, and it seems that this part of the code:
https://github.com/Codencode/ps_emailsubscription/blob/9eab6e01c91ec573158f80f9e68623423f9324dd/ps_emailsubscription.php#L961

Prevents running this code:
https://github.com/Codencode/ps_emailsubscription/blob/9eab6e01c91ec573158f80f9e68623423f9324dd/ps_emailsubscription.php#L966

while it may be good to skip it for existing subscribers, it should work for newly registered accounts and the confirmation email should work

what do you think?

@Codencode

Copy link
Copy Markdown
Member Author

Hello @Codencode

I checked the old issue, this one PrestaShop/PrestaShop#17097, and it seems that this part of the code: https://github.com/Codencode/ps_emailsubscription/blob/9eab6e01c91ec573158f80f9e68623423f9324dd/ps_emailsubscription.php#L961

Prevents running this code: https://github.com/Codencode/ps_emailsubscription/blob/9eab6e01c91ec573158f80f9e68623423f9324dd/ps_emailsubscription.php#L966

while it may be good to skip it for existing subscribers, it should work for newly registered accounts and the confirmation email should work

what do you think?

Hi @kpodemski,
You're right, actually, something should be modified.
I'll try to create a PR so we can work on fixing the issue.

@Codencode

Copy link
Copy Markdown
Member Author

I created the PR; actually, the code needed to be changed because those instructions should only be executed if the email is valid. There were also some unnecessary code duplications.

PR: #121

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

QA ✔️ Status: Check done, Code approved

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

Problem with the newsletter subscription module

5 participants