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 body classes for manufacturer and supplier listings #31319

Merged
merged 1 commit into from Feb 17, 2023

Conversation

Hlavtox
Copy link
Contributor

@Hlavtox Hlavtox commented Feb 12, 2023

Questions Answers
Branch? 8.1.x
Description? In #29264, I did not realize there is also a case when there is no specific manufacturer = their listing. It was missed during QA. It throws Warning: Attempt to read property "id" on null in controllers\front\listing\ManufacturerController.php on line 242 and Warning: Attempt to read property "name" on null in controllers\front\listing\ManufacturerController.php on line 243.
Type? bug fix
Category? FO
BC breaks? no
Deprecations? no
How to test? Visit /brands and see that the warnings are gone. Visit /brand/2-graphic-corner and see that body classes are still there.
Fixed ticket? Fixes #31320
Related PRs
Sponsor company

@Hlavtox Hlavtox requested a review from a team as a code owner February 12, 2023 12:59
@prestonBot prestonBot added the Bug fix Type: Bug fix label Feb 12, 2023
controllers/front/listing/ManufacturerController.php Outdated Show resolved Hide resolved
0x346e3730
0x346e3730 previously approved these changes Feb 13, 2023
@hibatallahAouadni hibatallahAouadni linked an issue Feb 13, 2023 that may be closed by this pull request
kpodemski
kpodemski previously approved these changes Feb 14, 2023
@kpodemski kpodemski added the Waiting for QA Status: action required, waiting for test feedback label Feb 14, 2023
@florine2623 florine2623 self-assigned this Feb 17, 2023
Copy link
Contributor

@florine2623 florine2623 left a comment

Choose a reason for hiding this comment

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

Hello @Hlavtox ,

Automated tests : https://github.com/florine2623/testing_pr/actions/runs/4202318255

LGTM ! It is QA ✅
Thanks!

@florine2623 florine2623 added QA ✔️ Status: check done, code approved and removed Waiting for QA Status: action required, waiting for test feedback labels Feb 17, 2023
@prestonBot
Copy link
Collaborator

QA approved, well done! Message to the maintainers: do not forget to milestone it before the merge.

@Hlavtox Hlavtox merged commit 8b33ffb into PrestaShop:8.1.x Feb 17, 2023
@Hlavtox Hlavtox added this to the 8.1.0 milestone Feb 17, 2023
@Hlavtox Hlavtox deleted the fix-body-classes branch February 21, 2023 13:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug fix Type: Bug fix QA ✔️ Status: check done, code approved
Projects
None yet
Development

Successfully merging this pull request may close these issues.

FO manufacturer list page throws warning
7 participants