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

Fixed undefined array key category_name in statistics #280

Merged
merged 1 commit into from
Oct 1, 2024

Conversation

nicosomb
Copy link
Contributor

Questions Answers
Description? Fixed undefined array key category_name in statistics
Type? bug fix
BC breaks? no
Deprecations? no
Sponsor company PrestaShop SA
How to test? See #276 (review)


foreach ($presentedProduct as $key => $value) {
if ($key == 'embedded_attributes') {
$imgDetails = $value['cover'];
}
}
if (!$imgDetails) {
$imageRetriever = new ImageRetriever($this->context->link);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm not fan of this line because I already have it line 150.

@nicosomb nicosomb mentioned this pull request Sep 10, 2024
@nicosomb nicosomb force-pushed the fix-undefined-array-key branch from aa38fb9 to e6e8c9c Compare September 10, 2024 13:46
@paulnoelcholot
Copy link

paulnoelcholot commented Sep 17, 2024

Hello @nicosomb,

I tested your PR and I found bug sorry :/

But I can't to reproduce the issue of Florine with the error "Undefined array key category_name"

https://www.loom.com/share/7eb1aa91d2f444c0800dca95500cc5c3?sid=6f4ffc33-28d5-4a25-949b-575c4531e88a

@Hlavtox
Copy link
Contributor

Hlavtox commented Sep 17, 2024

@paulnoelcholot I think you must test on 8.0.x or 8.1.x to reproduce this.

@nicosomb
Copy link
Contributor Author

@paulnoelcholot you already found this bug in an other pull request, there is an opened issue for that : PrestaShop/PrestaShop#33374

@Hlavtox
Copy link
Contributor

Hlavtox commented Sep 27, 2024

Bump @PrestaShop/qa-functional please, I need this released so PrestaShop/PrestaShop#36873 can move on. :-)

@boherm
Copy link
Member

boherm commented Oct 1, 2024

Hi @nicosomb! I have just test your PR with PrestaShop/PrestaShop#36880 and it's ok!

@Hlavtox Hlavtox merged commit 5b312ca into dev Oct 1, 2024
24 checks passed
@Hlavtox Hlavtox added this to the 3.0.2 milestone Oct 1, 2024
@ps-jarvis
Copy link

PR merged, well done!

Message to @PrestaShop/committers: do not forget to milestone it before the merge.

@Progi1984 Progi1984 deleted the fix-undefined-array-key branch October 1, 2024 16:42
Progi1984 added a commit to Progi1984/blockwishlist that referenced this pull request Oct 3, 2024
Progi1984 added a commit to Progi1984/blockwishlist that referenced this pull request Oct 3, 2024
Progi1984 added a commit to Progi1984/blockwishlist that referenced this pull request Oct 3, 2024
Progi1984 added a commit that referenced this pull request Oct 3, 2024
Functional Tests : Enable Tests after #280
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

9 participants