Bug 27933: Fix patron search result ordering
On bug 27715 we restrict the order by dt params for security reasons.
However in some cases the param passed is "columnname" instead of
"table.columnname".
We should make sure the table is part of the sort fieldname.
Test plan:
Do a "normal" patron search (from the patrons home page) and another
patron search (guarantor for instance).
Sort by cardnumber, date of birth, expiration date, asc, desc and
confirm it works as expected.
Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
(cherry picked from commit 1b32e66380)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
This commit is contained in:
parent
4d4be17afc
commit
18e10f1007
|
|
@ -153,6 +153,15 @@
|
|||
},{
|
||||
'name': 'name_sorton',
|
||||
'value': 'borrowers.surname borrowers.firstname'
|
||||
},{
|
||||
'name': 'cardnumber_sorton',
|
||||
'value': 'borrowers.cardnumber',
|
||||
},{
|
||||
'name': 'dateofbirth_sorton',
|
||||
'value': 'borrowers.dateofbirth',
|
||||
},{
|
||||
'name': 'dateexpiry_sorton',
|
||||
'value': 'borrowers.dateexpiry',
|
||||
},{
|
||||
'name': 'category_sorton',
|
||||
'value': 'categories.description',
|
||||
|
|
|
|||
|
|
@ -398,8 +398,14 @@
|
|||
'name': 'name_sorton',
|
||||
'value': 'borrowers.surname borrowers.firstname'
|
||||
},{
|
||||
'name': 'dateofbirth',
|
||||
'name': 'cardnumber_sorton',
|
||||
'value': 'borrowers.cardnumber',
|
||||
},{
|
||||
'name': 'dateofbirth_sorton',
|
||||
'value': 'borrowers.dateofbirth',
|
||||
},{
|
||||
'name': 'dateexpiry_sorton',
|
||||
'value': 'borrowers.dateexpiry',
|
||||
},{
|
||||
'name': 'category_sorton',
|
||||
'value': 'categories.description',
|
||||
|
|
|
|||
Loading…
Reference in New Issue