When Multistore is enabled and there are at least two active shops, an error occurs in the back-office when viewing the Shopping Carts list with the "All shops" context selected.
The issue arises when a product is associated exclusively with Shop 2, and a shopping cart is created in Shop 2 with this product. When switching the context in Orders > Shopping Carts to All shops, an error appears instead of the expected shopping cart list.
Prerequisites
Describe the bug and add attachments
When Multistore is enabled and there are at least two active shops, an error occurs in the back-office when viewing the Shopping Carts list with the "All shops" context selected.
The issue arises when a product is associated exclusively with Shop 2, and a shopping cart is created in Shop 2 with this product. When switching the context in Orders > Shopping Carts to All shops, an error appears instead of the expected shopping cart list.
screen-capture.webm
Expected behavior
No response
Steps to reproduce
PrestaShop version(s) where the bug happened
8.1.7
PHP version(s) where the bug happened
No response
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).
@codencode