From c26ef914b2b460b4cbaaf2aa43f10f3efd3feb87 Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Thu, 14 Feb 2013 15:55:49 -0500 Subject: [PATCH] ACQ upload does not persist provider Do not persist upload provider. The org unit setting for defining a default provide is still available. Signed-off-by: Bill Erickson Signed-off-by: Ben Shum --- Open-ILS/web/js/ui/default/acq/common/vlagent.js | 5 +++-- Open-ILS/web/js/ui/default/acq/picklist/upload.js | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Open-ILS/web/js/ui/default/acq/common/vlagent.js b/Open-ILS/web/js/ui/default/acq/common/vlagent.js index 0d16c862a6..38df7923ff 100644 --- a/Open-ILS/web/js/ui/default/acq/common/vlagent.js +++ b/Open-ILS/web/js/ui/default/acq/common/vlagent.js @@ -258,14 +258,15 @@ function VLAgent(args) { return false; // not yet complete }; - this.readCachedValue = function(dij, key) { + this.readCachedValue = function(dij, key, ousOnly) { var val; var setname = osetkey + (setNameMap[key] ? setNameMap[key] : key); if (ouSettingTrumpsPersist && persistOrgSettings[setname]) { val = persistOrgSettings[setname].value; } else { - val = xulStorage.getItem(storekey + key); + if (!ousOnly) + val = xulStorage.getItem(storekey + key); if (!val && persistOrgSettings[setname]) val = persistOrgSettings[setname].value; } diff --git a/Open-ILS/web/js/ui/default/acq/picklist/upload.js b/Open-ILS/web/js/ui/default/acq/picklist/upload.js index 6b85dbce5f..df11b0f84b 100644 --- a/Open-ILS/web/js/ui/default/acq/picklist/upload.js +++ b/Open-ILS/web/js/ui/default/acq/picklist/upload.js @@ -37,7 +37,7 @@ function init2() { }).build( function(w) { providerWidget = w; - vlAgent.readCachedValue(w, 'provider'); + vlAgent.readCachedValue(w, 'provider', true); } ); -- 2.43.2