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>
(cherry picked from commit 5ff47fc40c)
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
parent
26d2a3e779
commit
41f690bca2
|
|
@ -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