Bug 12475 - GetMemberDetails should return undef if borrowernumber doesn't exist
Summary: GetMemberDetails should return undef if borrowernumber doesn't exist
Status: CLOSED WONTFIX
Alias: None
Product: Koha
Classification: Unclassified
Component: Patrons (show other bugs)
Version: Main
Hardware: All All
: P5 - low minor (vote)
Assignee: Bugs List
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-06-25 01:36 UTC by David Cook
Modified: 2018-12-03 20:04 UTC (History)
3 users (show)

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Cook 2014-06-25 01:36:56 UTC
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.
Comment 1 Katrin Fischer 2018-05-16 02:02:53 UTC
GetMemberDetails no longer exists in Koha.