Bug 32894: Koha::Biblio->biblioitem
Can we do better here? Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Nick Clemens <nick@bywatersolutions.com> (cherry picked from commit994132a60a) Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> (cherry picked from commite91d18fcdd) Signed-off-by: Matt Blenkinsop <matt.blenkinsop@ptfs-europe.com>
This commit is contained in:
parent
8c099ab9f7
commit
c62cf435e2
|
|
@ -564,10 +564,7 @@ Returns the related Koha::Biblioitem object for this Biblio object
|
|||
|
||||
sub biblioitem {
|
||||
my ($self) = @_;
|
||||
|
||||
$self->{_biblioitem} ||= Koha::Biblioitems->find( { biblionumber => $self->biblionumber() } );
|
||||
|
||||
return $self->{_biblioitem};
|
||||
return Koha::Biblioitems->find( { biblionumber => $self->biblionumber } );
|
||||
}
|
||||
|
||||
=head3 suggestions
|
||||
|
|
|
|||
Loading…
Reference in New Issue