Easyadminbundle: Search action - No sortDirection check

Created on 31 Aug 2018  路  2Comments  路  Source: EasyCorp/EasyAdminBundle

Hello

Describe the bug
In the search action, there is no verification about the value of sortDirection

To Reproduce
Go to the ?action=search for an entity, then update in the URL the value of sortDirection : SQL error

For exemple on the list action, there is a check about that :

http://127.0.0.1:8000/admin/?entity=Image&action=list&menuIndex=3&submenuIndex=-1&sortField=id&sortDirection=ZOBBY

capture d ecran 2018-08-31 a 16 32 55

But on the search action :

http://127.0.0.1:8000/admin/?action=search&entity=Image&sortField=id&sortDirection=ZOBBY&menuIndex=3&submenuIndex=-1&query=logo

capture d ecran 2018-08-31 a 16 32 34

bug hasPR

Most helpful comment

@Benjamin-Porquet I love the argument that you used "ZOBBY" 馃樅

All 2 comments

Fixed by #2343.

@Benjamin-Porquet I love the argument that you used "ZOBBY" 馃樅

Was this page helpful?
0 / 5 - 0 ratings

Related issues

BigMichi1 picture BigMichi1  路  3Comments

ghost picture ghost  路  3Comments

nickicool picture nickicool  路  4Comments

haithem-rihane picture haithem-rihane  路  4Comments

lukasluecke picture lukasluecke  路  3Comments