The Overdue report ( circ/overdue.pl ) is not limiting the visible patron attributes based on the branch limitations selected for the given attribute. This is because the script is accessing the attributes via a direct database query, rather than using the subroutines in C4::Members::Attributes
Created attachment 123970 [details] [review] Bug 11750: Hide patron's attributes on overdue list if needed If a patron's attributes is limited to some libraries, we must apply this limit on the overdue list view. Test plan: 1. Create the following patron attributes: A that is not searchable B is searchable and does not have library limitation C is searchable and is limited to another library than yours 2. On the right part of the overdue list view you must see B only Without this patch C is displayed as well.
I tested the patch and everything seems to work! Attribute C is not displayed when I am in a library other than mine.
Created attachment 129221 [details] [review] Bug 11750: Hide patron's attributes on overdue list if needed If a patron's attributes is limited to some libraries, we must apply this limit on the overdue list view. Test plan: 1. Create the following patron attributes: A that is not searchable B is searchable and does not have library limitation C is searchable and is limited to another library than yours 2. On the right part of the overdue list view you must see B only Without this patch C is displayed as well. Signed-off-by: The Minh Luong <the-minh.luong@inlibro.com> Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Created attachment 129222 [details] [review] Bug 11750: (QA follow-up) Remove unconditional warn
Thx for testing, The Minh Luong. I have added your sign-off line to the patch: https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=129221 Please have a look at how you can do this yourself using git or the sandboxes and let us know if we can help.
Pushed to master for 22.05, thanks to everybody involved [U+1F984]
Pushed to 21.11.x for 21.11.03
Pushed to 21.05.x for 21.05.11
Not backported to oldoldstable (20.11.x). Feel free to ask if it's needed.