-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Collapse option not working for the the BO category tree #23625
Conversation
Hello @crezzur! This is your first pull request on the PrestaShop project. Thank you, and welcome to this Open Source community! |
I asked a question only on one this, but every |
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.
Tested it and every changed line was using wrong scoped reference, LGTM to me ;)
Hi @crezzur, Thanks for your fix. Thank you! |
@crezzur No your are targeting |
@crezzur I think you misunderstood me : your PR targets the |
The base branch was changed.
@crezzur I think you need to change the target branch to 1.7.7.x, and then rebase your branch on the 1.7.7.x branch, if the rebase is too hard, we can just open a new PR or cherry pick the commit on a new PR |
You just changed the base branch, you need to rebase it into 1.7.7.x now |
Hi @crezzur, The first issue is fixed but the second problem still exists.
I attached a screen record Thank you! |
@khouloudbelguith The error is caused by the function call inside the function Searching into the whole folder concluding this i am guessing the functions organizeTree() and getCategoryById() are leftovers from something what is already removed. If you come to the same conclusion i will add a pull request to remove those functions. |
Hi @crezzur, Thanks for your feedback. Thank you! |
The error is showing instantly when you click on the expand all button. The reason it is displayed in the Add shop treeview page only is because this treeview has the search option activated. The error is caused by the function call organizeTree(); (tree.js line 218). Looking into this function it looks like its a dead part of code. inside the function organizeTree() a call to the function getCategoryById() is made. Looking into the function getCategoryById() the HTML attribute name="id_parent" is searched. Searching into the whole folder STORE\BACKFOFFICE\themes\default\ and more specific STORE\BACKFOFFICE\themes\default\template\helpers\tree\ for the HTML attribute name="id_parent" returns negative. concluding this i am guessing the functions organizeTree() and getCategoryById() are leftovers from something what is already removed.
@khouloudbelguith added the changes to this pull request. |
Hi @crezzur, It is ok ✔️ Thank you! |
QA approved, well done! Message to the maintainers: do not forget to milestone it before the merge. |
Contribution merged, congratulations! Would you mind answering our quick 1-minute survey? We would love to hear about your experience so far, it will help us improve our process for the community involved, like you. ;-) |
This change is