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)
committerKathy Lussier <klussier@masslnc.org>
Thu, 22 Mar 2018 16:43:04 +0000 (12:43 -0400)
commit5c27ff5e90e6ab14dcf87b2d884c474023793d88
treee7b4737368be9199ca8749928703aa1d6ff1c9d2
parent85faf875b000dca04e19e9fff79477976e4013b9
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>
Signed-off-by: Terran McCanna <tmccanna@georgialibraries.org>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
Open-ILS/web/js/ui/default/staff/circ/patron/regctl.js