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 Admin controller shop context #30385
base: develop
Are you sure you want to change the base?
Conversation
PululuK
commented
Nov 23, 2022
Questions | Answers |
---|---|
Branch? | develop |
Description? | Fix Admin controller shop context. |
Type? | bug fix |
Category? | CO |
BC breaks? | no |
Deprecations? | no |
Fixed ticket? | TODO. |
Related PRs | TODO |
How to test? | TODO |
Possible impacts? | TODO |
Hi, thanks for this contribution! I found some issues with the Pull Request description:
Would you mind having a look at it? This will help us understand how interesting your contribution is, thank you very much! About linked issuesPlease consider opening an issue before submitting a Pull Request:
(Note: this is an automated message, but answering it will reach a real human) |
@@ -2905,7 +2905,8 @@ public function initShopContext() | |||
// Replace existing shop if necessary | |||
if (!$shop_id) { | |||
$this->context->shop = new Shop((int) Configuration::get('PS_SHOP_DEFAULT')); | |||
} elseif ($this->context->shop->id != $shop_id) { | |||
} else { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why don't keep the elseif
and add a else
after it?
Hey @PululuK, I think this needs a description about why replacing the elseif by else is important |