Bug 18558 - Koha::Clubs->get_enrollable explodes if no patron given
Summary: Koha::Clubs->get_enrollable explodes if no patron given
Status: ASSIGNED
Alias: None
Product: Koha
Classification: Unclassified
Component: Architecture, internals, and plumbing (show other bugs)
Version: unspecified
Hardware: All All
: P5 - low normal (vote)
Assignee: Kyle M Hall
QA Contact: Testopia
URL:
Keywords:
Depends on: 12461
Blocks:
  Show dependency treegraph
 
Reported: 2017-05-08 18:37 UTC by Jonathan Druart
Modified: 2017-05-08 18:47 UTC (History)
0 users

See Also:
Change sponsored?: ---
Patch complexity: ---
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 Jonathan Druart 2017-05-08 18:37:01 UTC
The method should not make $params->{borrower} mandatory.
But if not passed, the method explodes with 

Can't call method "branchcode" on an undefined value at /home/vagrant/kohaclone/Koha/Clubs.pm line 60.