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 commit1b32e66380) Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com> (cherry picked from commit18e10f1007) Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com> (cherry picked from commitf7cbe52289) Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>
This commit is contained in:
parent
5867cf7a40
commit
a8bf8b00c4
|
|
@ -149,6 +149,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',
|
||||
|
|
|
|||
|
|
@ -435,8 +435,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