Bug 17093 - JavaScript error on patron entry page if toolbar is not displayed
Summary: JavaScript error on patron entry page if toolbar is not displayed
Status: CLOSED FIXED
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: 2016-08-09 16:11 UTC by Owen Leonard
Modified: 2020-11-30 21:45 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 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.