]> git.evergreen-ils.org Git - working/Evergreen.git/commit
Protect against empty lists of linked bib searches
authorberick <berick@esilibrary.com>
Thu, 26 May 2011 18:44:48 +0000 (14:44 -0400)
committerMike Rylander <mrylander@gmail.com>
Mon, 11 Jul 2011 17:48:28 +0000 (13:48 -0400)
commit4e1432dc5f5c1f0353b7a02564b555367366e3e7
tree382df4788ae6f2afe934f252f283249f08ebc291
parent6b02e30519a690dc0b27cca9679a078c919c463e
Protect against empty lists of linked bib searches

Instead of returning undef when passed an empty list of bibs, always
return an array from
open-ils.cat.authority.records.count_linked_bibs
Apart from consistency, this prevents JS errors in the Manage
Authorities UI.

Signed-off-by: berick <berick@esilibrary.com>
Open-ILS/src/perlmods/lib/OpenILS/Application/Cat/Authority.pm