PrestaShop / PrestaShop

PrestaShop is the universal open-source software platform to build your e-commerce solution.
https://www.prestashop-project.org/
Other
8.11k stars 4.79k forks source link

Warning on every Backoffice page when there are no Quick Access pages created #35136

Closed MHostinato closed 8 months ago

MHostinato commented 8 months ago

Prerequisites

Describe the bug and add attachments

When there are no Quick pages created and debug mode is enabled, you get an warning message in almost every page of Backoffice.

This could be easily fixed by modifying these two .tpl files:

and by wrapping the foreach loops within an if statement, so this: {foreach $quick_access as $quick} ...... {/foreach}

becomes:

{if $quick_access} {foreach $quick_access as $quick} .... {/foreach} {/if}

Expected behavior

bo pages load correctly

Steps to reproduce

  1. Click on "Manage quick accesses" under the Quick Access menu available on every Backoffice page image
  2. Delete every entry in there
  3. Enable debug mode
  4. Go to another Backoffice page, eg. Orders
  5. See error: image

PrestaShop version(s) where the bug happened

8.1.1

PHP version(s) where the bug happened

8.1

If your bug is related to a module, specify its name and its version

No response

Your company or customer's name goes here (if applicable).

Hostinato

paulnoelcholot commented 8 months ago

Hello @MHostinato,

I reproduce the issue with PrestaShop version 8.1.x, I'll add this to the backlog so it can be fixed.

Please be aware that some issues might take a very long time to be resolved. If this one is important to you and you cannot wait for it to be fixed on the project’s own time, we strongly suggest you consider contacting a professional to help you.

If you fix the issue on your end, please contribute it back to the project. Remember that the more people contribute, the better PrestaShop becomes for everyone.

Thank you

image