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 tab visibility on PrestaShop 9 #687

Merged
merged 3 commits into from
Apr 9, 2024
Merged

Fix tab visibility on PrestaShop 9 #687

merged 3 commits into from
Apr 9, 2024

Conversation

ga-devfront
Copy link
Contributor

@ga-devfront ga-devfront commented Apr 5, 2024

Questions Answers
Description? Fix tab visibility on PrestaShop 9
Type? bug fix
BC breaks? no
Deprecations? no
Fixed ticket? Fixes PrestaShop/PrestaShop#35726
Sponsor company @PrestaShopCorp
How to test? You can try to install the module on V8 or V9 all run as expected.

@ga-devfront ga-devfront added bug Waiting for review Waiting for review labels Apr 5, 2024
M0rgan01
M0rgan01 previously approved these changes Apr 5, 2024
@ga-devfront ga-devfront removed the Waiting for review Waiting for review label Apr 5, 2024
Copy link
Contributor

@kpodemski kpodemski left a comment

Choose a reason for hiding this comment

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

blocking for investigation tomorrow

@ga-devfront
Copy link
Contributor Author

blocking for investigation tomorrow

About what ?

Copy link
Contributor

@kpodemski kpodemski left a comment

Choose a reason for hiding this comment

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

Hello @ga-devfront

The new tab system was introduced years ago, not in PrestaShop 9. This is why I blocked the PR yesterday: I find the title, commit name, and comment in the code confusing.

Could you point me to the PR from PrestaShop 9 introducing "DEFAULT" tab? Otherwise, let's rephrase everything that mentioned v9 as a reason why it didn't work 👍🏻

@Quetzacoalt91
Copy link
Member

Quetzacoalt91 commented Apr 8, 2024

I see what you mean @kpodemski. I think DEFAULT is the reference to the parent tab introduced in PrestaShop 1.7 when the sidebar has been reworked (PrestaShop/PrestaShop@fef7eba?diff=split&w=1).

Since this rework, using AdminTools as parent triggered a fallback on Default. The method responsible of this will be removed in PrestaShop v9, explaining why the Upgrade module was not visible anymore: PrestaShop/PrestaShop@178c4a4

This breaking change can be documented as other very old modules may encounter the say issue.

autoupgrade.php Outdated Show resolved Hide resolved
autoupgrade.php Outdated Show resolved Hide resolved
@kpodemski kpodemski changed the title fix: update parent tab to choose the correct one depending on if you are in V9 or below Fix tab visibility on PrestaShop 9 Apr 8, 2024
@kpodemski kpodemski removed the Waiting for review Waiting for review label Apr 8, 2024
Copy link
Contributor

@AureRita AureRita left a comment

Choose a reason for hiding this comment

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

Hi @ga-devfront

Thank you for your PR, I tested it and it seems to works as you can see :

image

Tested on 8.0.5, 8.1.5 and develop

Because the PR seems to works as expected, It's QA ✔️

Thank you

@kpodemski kpodemski added this to the 5.0.2 milestone Apr 9, 2024
@kpodemski kpodemski merged commit d337ac0 into dev Apr 9, 2024
54 checks passed
@kpodemski
Copy link
Contributor

thank you @ga-devfront

@ga-devfront ga-devfront deleted the fix/issue_35726 branch April 9, 2024 10:27
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.

Autoupgrade - We don't have the autoupgrade on the side bar for the v9
7 participants