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

Implement call to hook filterHtmlContent on modules HTML #53

Merged
merged 1 commit into from Feb 24, 2021

Conversation

elburgl69
Copy link
Contributor

@elburgl69 elburgl69 commented Jan 6, 2021

Questions Answers
Description? The module ps_customtext has the ability to show HTML at desired places. Since Prestashop 1.7.1 hook filterHTMLContent is implemented allowing module developers to react to codes in HTML and inject module generated HTML in the resulting HTML.
This change updates ps_customtext in such way that the HTML of this module is treated as any other prestashop HTML, so that hook filterHTMLContent is called also,
Type? improvement
BC breaks? no
Deprecations? no
Fixed ticket? Fixes PrestaShop/PrestaShop#18520
How to test? HTML content of the module should display as usual. Should process module hooked to filterHTMLContent.

This change is Reviewable

ps_customtext.php Outdated Show resolved Hide resolved
@elburgl69
Copy link
Contributor Author

Not clear if action is required from me? Changes proposed by @Progi1984 are fine by me so I set Resolved. Do I need to include changes in my code or will they run through in due time?

@Progi1984
Copy link
Contributor

@elburgl69 I don't see your changes. Have you pushed modifications ?

@elburgl69
Copy link
Contributor Author

Did it right now. Was not sure if I had to push your suggested changes.

@Progi1984
Copy link
Contributor

@elburgl69 Sorry, but I don't see your changes in Github interface : https://github.com/PrestaShop/ps_customtext/pull/53/files

@Progi1984
Copy link
Contributor

@elburgl69 Could you fix Github Checks, please ?

@elburgl69
Copy link
Contributor Author

Done

ps_customtext.php Outdated Show resolved Hide resolved
Copy link
Contributor

@PierreRambaud PierreRambaud left a comment

Choose a reason for hiding this comment

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

Watchout with errors in phpstan 😉

@khouloudbelguith
Copy link

Hi @elburgl69,

It is ok ✔️
I tried with develop branch, 177x branch & PS1769
Without PR
image

With PR
image

Thank you!

@khouloudbelguith khouloudbelguith added this to the 4.1.2 milestone Feb 24, 2021
@Progi1984 Progi1984 merged commit 77d9090 into PrestaShop:dev Feb 24, 2021
@Progi1984
Copy link
Contributor

Thanks @elburgl69 & @khouloudbelguith

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
5 participants