[Koha-bugs] [Bug 12475] New: GetMemberDetails should return undef if borrowernumber doesn't exist
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Wed Jun 25 03:36:56 CEST 2014
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=12475
Bug ID: 12475
Summary: GetMemberDetails should return undef if borrowernumber
doesn't exist
Change sponsored?: ---
Product: Koha
Version: master
Hardware: All
OS: All
Status: NEW
Severity: minor
Priority: P5 - low
Component: Patrons
Assignee: koha-bugs at lists.koha-community.org
Reporter: dcook at prosentient.com.au
QA Contact: testopia at bugs.koha-community.org
CC: gmcharlt at gmail.com, kyle.m.hall at gmail.com
If you pass an invalid borrowernumber (ie a borrowernumber that doesn't exist
in the borrowers table) to GetMemberDetails, you get the following information
in the hashref it returns:
'authflags' => undef,
'flags' => {},
'amountoutstanding' => '0',
'showname' => undef
It should just return 'undef' so you know that the borrower you're looking for
doesn't exist in the database.
--
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