https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=30825 --- Comment #12 from Tomás Cohen Arazi <tomascohen@gmail.com> --- (In reply to Martin Renvoize from comment #11)
Created attachment 135281 [details] [review] Bug 30825: Pass by reference
Not sure if this is nicer or not honestly. This changes the signature of hols_control_library to accept a hashref of patron_id and patron object reference. If the patron_object reference is found to be undefined and our syspref requires it we populate the reference with a Koha::Patron object as found from the patron_id.
I have the feeling this particular case would do better with just the patron_id. If we have it, good. If we have it via a Koha::Patron object, then $patron->id would be pretty clear to read. -- You are receiving this mail because: You are watching all bug changes.