[Koha-bugs] [Bug 32980] Checkouts for guarantees are not shown if patron also has a guarantor

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Sep 1 10:02:38 CEST 2023


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

Philip Orr <philip.orr at lmscloud.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #155015|0                           |1
        is obsolete|                            |

--- Comment #9 from Philip Orr <philip.orr at lmscloud.de> ---
Created attachment 155062
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=155062&action=edit
Bug 32980: Make the return value of Koha::Patron::siblings consistent

Without the patch, Koha::Patron::siblings can return:
- undef (or an empty list in list context) if patron has no guarantors
- a Koha::Patrons object if patron has at least one guarantor, which
  doesn't necessarily mean that they have siblings (they can be the only
  guarantee)

For ease of use, this subroutine should always return a Koha::Patrons
object, even if it represents an empty set.

Signed-off-by: Owen Leonard <oleonard at myacpl.org>
Signed-off-by: Philip Orr <philip.orr at lmscloud.de>

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


More information about the Koha-bugs mailing list