Bug 17093

Summary: JavaScript error on patron entry page if toolbar is not displayed
Product: Koha Reporter: Owen Leonard <oleonard>
Component: PatronsAssignee: Bugs List <koha-bugs>
Status: CLOSED FIXED QA Contact: Testopia <testopia>
Severity: minor    
Priority: P5 - low CC: gmcharlt, kyle.m.hall
Version: Main   
Hardware: All   
OS: All   
GIT URL: Change sponsored?: ---
Patch complexity: --- Documentation contact:
Documentation submission: Text to go in the release notes:
Version(s) released in:
Circulation function:

Description Owen Leonard 2016-08-09 16:11:09 UTC
Under some circumstances the patron entry form and toolbar are not displayed by memberentrygen.tt. For instance, if there are no libraries or patron categories defined. If this happens a JavaScript error is triggered because a check for #toolbar's position returns null.
Comment 1 Katrin Fischer 2020-01-11 14:53:37 UTC
It feels like this could only happen if you work with the db user and have managed to not create the values in the installer (onboardig) somehow - should we mark WONTFIX?
Comment 2 Owen Leonard 2020-01-14 12:40:14 UTC
This turns out to have been fixed by the switch to the hc-sticky library for floating the toolbar. It doesn't throw an error when the toolbar doesn't exist.