In cases where there is no hold on a precat copy, avoid trying to find
"related" holds, in part because it's unnecessary, but also because the
implementation assumes a fleshed $self->volume object, which is not
present during precat checkout.
Signed-off-by: Bill Erickson <berick@esilibrary.com>
Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
my($self, $copy, $patron) = @_;
my $e = $self->editor;
- return undef if $self->volume->id == OILS_PRECAT_CALL_NUMBER;
+ # holds on precat copies are always copy-level, so this call will
+ # always return undef. Exit early.
+ return undef if $self->is_precat;
return undef unless $U->ou_ancestor_setting_value(
$self->circ_lib, 'circ.checkout_fills_related_hold', $e);