LP#1361258 Patron reg repair user settings saving/loading user/berick/lp1361258-patron-reg-hold-prefs
authorBill Erickson <berickxx@gmail.com>
Mon, 19 Mar 2018 19:22:44 +0000 (15:22 -0400)
committerBill Erickson <berickxx@gmail.com>
Tue, 20 Mar 2018 18:28:20 +0000 (14:28 -0400)
commit32da5ea9fb6ce6a549004f2bec3eab185281b9cd
tree030e94e594131383eb108bbdbef3b84e55fe0cfb
parentaf288445a609cae947e3346d25bd28bbca513b91
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