Allow BibCommon::title_is_empty to accept a bre id or bre object. user/dyrcona/BibCommon-title_is_empty-obj-or-id
authorJason Stephenson <jstephenson@mvlc.org>
Wed, 30 Oct 2013 15:05:45 +0000 (11:05 -0400)
committerJason Stephenson <jstephenson@mvlc.org>
Wed, 30 Oct 2013 15:18:44 +0000 (11:18 -0400)
commit40b3618053b7924375be3aba3f5ce098f195d8d5
tree6e73afcb27781d03d0eed439726916ce1e6681f2
parentc9a4dee7878648e671fe7c33c431a366746eab34
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>
Open-ILS/src/perlmods/lib/OpenILS/Application/Cat/BibCommon.pm