Bug 18171

Summary: Patron Clubs feature breaks logging in/display of logged in users
Product: Koha Reporter: Liz Rea <liz>
Component: OPACAssignee: Owen Leonard <oleonard>
Status: CLOSED INVALID QA Contact: Testopia <testopia>
Severity: critical    
Priority: P5 - low CC: jonathan.druart
Version: Main   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:
Bug Depends on:    
Bug Blocks: 12461    

Description Liz Rea 2017-02-27 00:13:48 UTC
It seems that you cannot log in to the OPAC with the new patron clubs feature. 

Logging in when no clubs are defined gives: 

The method get_club_enrollments_count is not covered by tests! at /home/vagrant/kohaclone/C4/Templates.pm line 121. 

If you have clubs defined, logging in gives you: 

Template process failed: undef error - The method size is not covered by tests! at /home/vagrant/kohaclone/C4/Templates.pm line 121.

Reverting the patch for the clubs resolves this issue.
Comment 1 Liz Rea 2017-02-27 01:48:39 UTC
Changed to critical for the bug it blocks, but it isn't a blocker in Koha.
Comment 2 Jonathan Druart 2017-02-27 07:36:00 UTC
Bug 12461 has been reverted.