Prestashop: Sorting does not work in BO catalog page

Created on 28 Aug 2018  路  7Comments  路  Source: PrestaShop/PrestaShop

Describe the bug
On backoffice Catalog page, I click on the blue arrows try to sort the products by ID, name, category name ... and nothing seems to work.

To Reproduce
Go to backoffice Catalog page, click on blue arrows next to "ID" or "Name", or "Category". This should sort the products displayed in the listing. Page is reloaded but not sorted.

Screenshots
capture d ecran 2018-08-28 a 14 42 18

Additionnal information
PrestaShop version: 1.7.4.2
PHP version: 7.1

BO Bug Catalog Fixed Major Products Regression develop

All 7 comments

Hi @matks,

I did not manage to reproduce the issue with the last version 1.7.4.2.
I attached a video record: https://drive.google.com/file/d/1AAfdbWluABBV4Q6oqyw9V2m_WJvHNCjh/view
Thanks to check and feedback.

Best regards, Khouloud

Hi @matks,

I manage to reproduce the issue with the branch develop.
In the last version 1.7.4.2. => Ok
We will see how to fix it.

Best regards, Khouloud

According to its routing this page expects URL to be formatted as /{offset}/{limit}/{orderBy}/{sortOrder}

However the listing URL does not follow this at all: /sell/catalog/products?_token=xxxxx&orderBy=reference&sortOrder=asc: the sort parameters are not passed in the path but as GET parameters. So offset, orderBy, sortOrder ... are always being given default values no matter what the user inputs.

@eternoendless Wdyt ? I can either fallback on the $_GET (using Symfony $request object) values or I can modify the routing.

@matks Le Fu.. Was already fixed. https://github.com/PrestaShop/PrestaShop/pull/9074 and validated by @eternoendless

As it's fixed and merged this issue should be closed.

Good job everyone

It's fixed on 1.7.5.x

Was this page helpful?
0 / 5 - 0 ratings