From: Bill Erickson Date: Mon, 2 Jun 2014 20:14:38 +0000 (-0400) Subject: LP#1325720 Repair fund rollover year selector query X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=6ad1181a6e91695bcad3285dcb838d8b5ec395de;p=evergreen%2Fpines.git 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 --- 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;