[Koha-bugs] [Bug 12868] GetMemberDetails calls GetMemberAccountRecords incorrectly
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Thu Sep 4 01:21:38 CEST 2014
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=12868
--- Comment #2 from M. Tompsett <mtompset at hotmail.com> ---
Created attachment 31355
-->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=31355&action=edit
Bug 12868: Wrong variable used for borrower number
When only the card number is passed to GetMemberDetail, the
value of $borrowernumber is undefined. Even after finding the
correct borrower and providing a nice hash ($borrower), the
GetMemberAccountRecords is called with the wrong borrower number,
even though it is in the hash ($borrower).
This was fixed by changing $borrowernumber to
$borrower->{borrowernumber}, so that the hash's value will always
be used, since it is correct regardless of whether borrowernumber
or cardnumber were used to find the borrower.
TEST PLAN
---------
1) Apply both patches
2) prove -v t/db_dependent/Member.t
-- This time the previously failing test will pass.
3) run koha QA test tools.
--
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
More information about the Koha-bugs
mailing list