[Koha-bugs] [Bug 28726] Add sort1 and sort2 to patron card creator patron search

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Aug 9 11:24:43 CEST 2022


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=28726

Jonathan Druart <jonathan.druart+koha at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jonathan.druart+koha at gmail.
                   |                            |com

--- Comment #17 from Jonathan Druart <jonathan.druart+koha at gmail.com> ---
+    @sort1 = sort {$a cmp $b} uniq(
Koha::Patrons->search($sort_filter)->get_column('sort1') );

This is terrible if you have lot of patrons. You should at least do the unique
(distinct) at the DBMS level.

What about the following suggestion: you could display sort1 and sort2
authorised values in the dropdown list, or simply display a search input.
You could also add it to the table's headers (filter at the top of the column).

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list