From c4848427256ecd9b4167fcd897dc934d0059c375 Mon Sep 17 00:00:00 2001 From: Llewellyn Marshall Date: Tue, 25 Oct 2022 10:11:14 -0400 Subject: [PATCH] LP1983991 handle when IN list empty Signed-off-by: Jane Sandberg --- Open-ILS/web/js/ui/default/staff/circ/services/circ.js | 1 + 1 file changed, 1 insertion(+) diff --git a/Open-ILS/web/js/ui/default/staff/circ/services/circ.js b/Open-ILS/web/js/ui/default/staff/circ/services/circ.js index a73cae2962..a06e167e44 100644 --- a/Open-ILS/web/js/ui/default/staff/circ/services/circ.js +++ b/Open-ILS/web/js/ui/default/staff/circ/services/circ.js @@ -721,6 +721,7 @@ function($uibModal , $q , egCore , egAlertDialog , egConfirmDialog, egAddCopyAl var addr_id = org[addr_type](); if(addr_id)addr_ids.push(addr_id); }); + if (!addr_ids.length) return $q.when(null); return egCore.pcrud.search('aoa', {id: addr_ids},{},{ atomic: true}).then(function(addrs) { return egCore.env.absorbList(addrs, 'aoa'); }); -- 2.11.0