From: Llewellyn Marshall Date: Tue, 25 Oct 2022 14:11:14 +0000 (-0400) Subject: LP1983991 handle when IN list empty X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=c4848427256ecd9b4167fcd897dc934d0059c375;p=Evergreen.git LP1983991 handle when IN list empty Signed-off-by: Jane Sandberg --- 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'); });