From 6ad1181a6e91695bcad3285dcb838d8b5ec395de Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Mon, 2 Jun 2014 16:14:38 -0400 Subject: [PATCH] LP#1325720 Repair fund rollover year selector query Dojo dojo stores track values as strings, so values used in data store queries must be coerced into strings before performing the query. This fixes the year query in the fund rollover UI so that the page is able to render the results of a rollover without dying from an JS error before completing. Signed-off-by: Bill Erickson Signed-off-by: Ben Shum --- Open-ILS/web/js/ui/default/acq/financial/list_funds.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 fbf1a744ff..09a47d55d8 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 @@ -253,7 +253,7 @@ function performRollover(args) { // add the new year to the year selector if it's not already there fundFilterYearSelect.store.fetch({ - query : {year : nextYear}, + query : {year : ''+nextYear}, onComplete: function(list) { if(list && list.length > 0) return; -- 2.43.2