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

Fix hook registration if needed #183

Merged
merged 3 commits into from
Dec 12, 2022

Conversation

kpodemski
Copy link
Contributor

@kpodemski kpodemski commented Dec 9, 2022

Questions Answers
Description? Sometimes hook wasn't registered. This PR adds a migration script from v1.4.2 to v1.4.3 that performs the following logic: "if the hook displayGDPRConsent was not registered for this module, I register it"
Type? bug fix
BC breaks? no
Deprecations? no
Fixed ticket? Fixes PrestaShop/PrestaShop#30348.
How to test? Please see ticket. You need a usecase where GDPR module is installed (v1.4.2) and the hook displayGDPRConsent is not registered for the module. See if checkboxes are displayed after GDPR upgrade module to 1.4.3.

@kpodemski kpodemski mentioned this pull request Dec 9, 2022
@matks
Copy link
Contributor

matks commented Dec 9, 2022

@kpodemski I improved a bit the PR description and How to test ;)

@hibatallahAouadni hibatallahAouadni self-assigned this Dec 12, 2022
Copy link

@hibatallahAouadni hibatallahAouadni left a comment

Choose a reason for hiding this comment

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

Hello @kpodemski

Thanks for your PR 🚀
LGTM except the creation of account, where the consent checkbox is not displayed 😞
Even thought, in BO the option is enabled, see the attached screenshot below:

image

See the attached screen record below:

psgdpr_183.webm

Please check and feedback.

Thanks!

@kpodemski
Copy link
Contributor Author

Thanks @hibatallahAouadni ! I've fixed it, it was indeed a problem as the id of the page is not registration 😎

Copy link

@hibatallahAouadni hibatallahAouadni left a comment

Choose a reason for hiding this comment

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

Hello @kpodemski

Thanks again for your hard working 🙌
LGTM, QA ✔️

Thanks!

@kpodemski kpodemski added this to the 1.4.3 milestone Dec 12, 2022
@kpodemski kpodemski merged commit 01998cb into PrestaShop:dev Dec 12, 2022
@kpodemski
Copy link
Contributor Author

Thanks @hibatallahAouadni !

gurkcity pushed a commit to gurkcity/psgdpr that referenced this pull request Jun 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Consent checkbox is not displayed even when enabled
4 participants