Bug 18558

Summary: Koha::Clubs->get_enrollable explodes if no patron given
Product: Koha Reporter: Jonathan Druart <jonathan.druart>
Component: Architecture, internals, and plumbingAssignee: Kyle M Hall <kyle>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: normal    
Priority: P5 - low    
Version: unspecified   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Bug Depends on: 12461    
Bug Blocks:    

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.