From f08d08c091ff85337338f6ba12fa281d92b4a18d Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Mon, 11 Jun 2012 15:23:17 -0400 Subject: [PATCH] Cache propagated funds in fund rollover action Repair display of propagated funds grid which was likely broken with b9bb6d47. Propagated funds must be collected and added to the local cache for grid getter functions to find them. https://bugs.launchpad.net/evergreen/+bug/1011789 Signed-off-by: Bill Erickson Signed-off-by: Ben Shum --- Open-ILS/web/js/ui/default/acq/financial/list_funds.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Open-ILS/web/js/ui/default/acq/financial/list_funds.js b/Open-ILS/web/js/ui/default/acq/financial/list_funds.js index 5b212c6a76..17873d0a3c 100644 --- a/Open-ILS/web/js/ui/default/acq/financial/list_funds.js +++ b/Open-ILS/web/js/ui/default/acq/financial/list_funds.js @@ -207,6 +207,10 @@ function performRollover(args) { } ) + // add the new, rolled funds to the cache. Note that in dry-run + // mode, these are ephemeral and no longer exist on the server. + cachedFunds = cachedFunds.concat(rolloverResponses); + dojo.byId('acq-fund-list-rollover-summary-header').innerHTML = dojo.string.substitute( localeStrings.FUND_LIST_ROLLOVER_SUMMARY, -- 2.11.0