[Koha-bugs] [Bug 31421] Library limitation on patron category breaks patron search
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Thu Oct 27 12:41:27 CEST 2022
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=31421
Jonathan Druart <jonathan.druart+koha at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #141479|0 |1
is obsolete| |
Attachment #142247|0 |1
is obsolete| |
Attachment #142332|0 |1
is obsolete| |
--- Comment #9 from Jonathan Druart <jonathan.druart+koha at gmail.com> ---
Created attachment 142705
-->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=142705&action=edit
Bug 31421: Do not apply library limits to Categories plugin
This patch simply changes from using 'search_with_library_limits'
to 'search'
The limits I think are intended to prevent users from setting a patron to the
wrong category,
they are not meant to hide patrons. Or rather, they don't do that, patrons are
returned in search
but cannot be processed. The dropdowns as well won't contain the category, so
you can see these
patrons, but not filter by the category
Bug 31422 and bug 31032 point out further issues with limits.
For now, let's fix searching
To test:
1 - Edit Patron category 'Patron/PT'
2 - Try to do a patron search that returns patrons in this category
3 - See 'Processing' and error in JS console: Uncaught TypeError:
categories_map[data] is undefined
4 - Apply patch
5 - Restart all and repeate
6 - It works now!
Signed-off-by: David Nind <david at davidnind.com>
Signed-off-by: Jonathan Druart <jonathan.druart at bugs.koha-community.org>
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list