From 7e0451b4baf2d388c92731514025651f9c44ea6b Mon Sep 17 00:00:00 2001 From: Cesar Velez Date: Wed, 7 Nov 2018 11:09:10 -0500 Subject: [PATCH] LP#1684202 - fix holdings grid refresh... bre_id array always be integers For some strange reason the volcopy bchannel event data.records would be an array of string integers or a array of ints depending on whether you're adding or editing holdings. This addresses that weirdness. Signed-off by: Cesar Velez --- Open-ILS/web/js/ui/default/staff/cat/volcopy/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Open-ILS/web/js/ui/default/staff/cat/volcopy/app.js b/Open-ILS/web/js/ui/default/staff/cat/volcopy/app.js index 6069fe7b81..4beb1c0514 100644 --- a/Open-ILS/web/js/ui/default/staff/cat/volcopy/app.js +++ b/Open-ILS/web/js/ui/default/staff/cat/volcopy/app.js @@ -1992,7 +1992,7 @@ function($scope , $q , $window , $routeParams , $location , $timeout , egCore , $timeout(function(){ if (typeof BroadcastChannel != 'undefined') { var bChannel = new BroadcastChannel("eg.holdings.update"); - var bre_ids = cnList && cnList.length > 0 ? cnList.map(function(cn){ return cn.record() }) : []; + var bre_ids = cnList && cnList.length > 0 ? cnList.map(function(cn){ return Number(cn.record()) }) : []; var cn_ids = cnList && cnList.length > 0 ? cnList.map(function(cn){ return cn.id() }) : []; bChannel.postMessage({ copies : copy_ids, -- 2.11.0