From dc0e6469f5540d40307d30d66e61f1bd7ea69191 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Mon, 17 Jul 2017 17:18:38 -0300 Subject: [PATCH] Bug 18262: Fix C4::XISBN Signed-off-by: Jonathan Druart --- C4/XISBN.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/C4/XISBN.pm b/C4/XISBN.pm index 6da6f10d9b..5f3fd510da 100644 --- a/C4/XISBN.pm +++ b/C4/XISBN.pm @@ -77,7 +77,9 @@ sub _get_biblio_from_xisbn { my $biblio = Koha::Biblios->find( $biblionumber ); return unless $biblio; - $biblio->{normalized_isbn} = GetNormalizedISBN($biblio->biblioitem->isbn); + my $isbn = $biblio->biblioitem->isbn; + $biblio = $biblio->unblessed; + $biblio->{normalized_isbn} = GetNormalizedISBN($isbn); return $biblio; } -- 2.39.5