Bug 28762: (QA follow-up) Restore protection against unknown itemtypes
Signed-off-by: Nick Clemens <nick@bywatersolutions.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
This commit is contained in:
parent
fdefef1444
commit
5ff47fc40c
|
|
@ -1843,7 +1843,8 @@ Returns the effective not for loan status of the item
|
|||
|
||||
sub effective_not_for_loan_status {
|
||||
my ($self) = @_;
|
||||
my $itype_notforloan = $self->itemtype->notforloan;
|
||||
my $itemtype = $self->itemtype;
|
||||
my $itype_notforloan = $itemtype ? $itemtype->notforloan : undef;
|
||||
return ( defined($itype_notforloan) && !$self->notforloan ) ? $itype_notforloan : $self->notforloan;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue