LP#1361258 Patron reg repair user settings saving/loading
authorBill Erickson <berickxx@gmail.com>
Mon, 19 Mar 2018 19:22:44 +0000 (15:22 -0400)
committerChris Sharp <csharp@georgialibraries.org>
Wed, 21 Mar 2018 14:52:12 +0000 (10:52 -0400)
commit85f4d7cdec9d8a90fd88a8a8e9cd3e870170e27a
treecf0c3ec136424052399288f9fbf471705fb4c8ed
parentc75158b34d088c94b13fec631a68343464f44639
LP#1361258 Patron reg repair user settings saving/loading

Avoid caching user setting values at the service (app) level in the user
editor.  In other words, always fetch a fresh copy of the current user's
setting with each instance of the editor page.

This solves a number problems where stale versions of the cached data
were referenced and acted on, both when displaying an updating user
settings.

Additionally, ensure that clone user and stage user data is refreshed
on all page instances as the URL params that affect these values can
change per instance.

Other data that is common to all instances (e.g. the set of profile
groups) is still cached as before.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
Open-ILS/web/js/ui/default/staff/circ/patron/regctl.js