Skip to content

fix: allow default message to be displayed if psData is not set in usePasswordPolicy#941

Merged
tblivet merged 1 commit intoPrestaShop:2.xfrom
aeyoll:fix-error-message
Mar 4, 2026
Merged

fix: allow default message to be displayed if psData is not set in usePasswordPolicy#941
tblivet merged 1 commit intoPrestaShop:2.xfrom
aeyoll:fix-error-message

Conversation

@aeyoll
Copy link
Contributor

@aeyoll aeyoll commented Feb 27, 2026

Questions Answers
Description? An OR operator was used, but with the left side expression being always true, so the default message could never be displayed.
Type? bug fix
BC breaks? no
Deprecations? no
Fixed ticket? na

@ps-jarvis
Copy link

Hello @aeyoll!

This is your first pull request on hummingbird repository of the PrestaShop project.

Thank you, and welcome to this Open Source community!

@github-project-automation github-project-automation bot moved this to Ready for review in PR Dashboard Feb 27, 2026
@aeyoll aeyoll force-pushed the fix-error-message branch 2 times, most recently from b587125 to b0e4889 Compare February 27, 2026 08:39
Copy link
Contributor

@tblivet tblivet left a comment

Choose a reason for hiding this comment

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

Good catch @aeyoll, thank you! Can you just remove the extra space, please? 🙂
Could you also rebase your PR if needed to make it target the 2.x branch?

@aeyoll aeyoll force-pushed the fix-error-message branch 2 times, most recently from b05fe2b to 3e96f9b Compare February 27, 2026 09:16
@aeyoll aeyoll changed the base branch from develop to 2.x February 27, 2026 09:16
tblivet
tblivet previously approved these changes Feb 27, 2026
Copy link
Contributor

@tblivet tblivet left a comment

Choose a reason for hiding this comment

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

Perfect thank you 🙏

@tblivet tblivet added this to the v2.0.1 milestone Feb 27, 2026
@ps-jarvis ps-jarvis moved this from Ready for review to To be tested in PR Dashboard Feb 27, 2026
@ingridusta ingridusta self-assigned this Mar 3, 2026
Copy link

@ingridusta ingridusta left a comment

Choose a reason for hiding this comment

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

Hi @aeyoll,

Thanks for your PR !

No regression on password field and error messages are well displayed :

Image Image Image Image

Also, no regression on account creation.

It's QA approved ! ✅

@tblivet tblivet merged commit 65b989a into PrestaShop:2.x Mar 4, 2026
6 checks passed
@github-project-automation github-project-automation bot moved this from To be tested to Merged in PR Dashboard Mar 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: Merged

Development

Successfully merging this pull request may close these issues.

4 participants