From 348f6bd73feecab23b1713b55ea37cdbc118d740 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 Signed-off-by: Chris Sharp --- 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 c7150a2523..406c0c0dfc 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.43.2