LP#1246371: Allow BibCommon::title_is_empty to accept a bre id or bre object.
authorJason Stephenson <jstephenson@mvlc.org>
Wed, 30 Oct 2013 15:05:45 +0000 (11:05 -0400)
committerChris Sharp <csharp@georgialibraries.org>
Mon, 5 Jan 2015 17:45:29 +0000 (12:45 -0500)
commitd92203b348b19bd64ebd85beecc1595f4bed2fa5
treef3d4847f51277bbbf5058feb4367b95585fff789
parentcae6529c7f9cab30f35bced4b9772a8b39386140
LP#1246371: Allow BibCommon::title_is_empty to accept a bre id or bre object.

I was trying to delete copies with the record fleshed in the call number
object and got the following error:

Can't use an undefined value as an ARRAY reference at
/usr/local/share/perl/5.14.2/OpenILS/Application/Cat/BibCommon.pm line 399

Having title_is_empty check for a bre object and use its id solved this
problem for me.

Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Open-ILS/src/perlmods/lib/OpenILS/Application/Cat/BibCommon.pm