LP#1361270 Self-registration doesn't retain org unit on refresh
authorDan Briem <dbriem@wlsmail.org>
Tue, 25 Aug 2020 19:47:15 +0000 (15:47 -0400)
committerKyle Huckins <khuckins@catalyte.io>
Thu, 21 Jan 2021 20:38:35 +0000 (20:38 +0000)
commit7d5e14f179d0ae9ace37ffe681468b7c6d301e48
tree645dbd44977a2da1a1b5b885ffbfc6d9ff47986c
parent8bc2f26961e7f44b69468bb49dd6b0985200fa89
LP#1361270 Self-registration doesn't retain org unit on refresh

This sets the self-registration form's org unit selector to the
the current org unit request parameter if it's set and self-
registration is allowed for that org unit. This will preopulate
the org selector on refresh or error instead of resetting to the
default context.

To test:
1. Administration->Local Administration->Library Settings Editor
   set Allow Patron Self-Registration to True (top context)
2. go to OPAC->Request Library Card (stock link is on bottom)
3. select a Home Library and click Submit Registration
4. note the Home Library select doesn't retain your selection
5. apply this fix and repeat steps
6. note the Home Library is retained

Signed-off-by: Dan Briem <dbriem@wlsmail.org>
Signed-off-by: Chris Sharp <csharp@georgialibraries.org>
Open-ILS/src/templates/opac/register.tt2