From 4156da894d9f2647f1b892ad56834a912a4f77a8 Mon Sep 17 00:00:00 2001 From: Baptiste Wojtkowski Date: Wed, 28 Jun 2017 15:35:11 +0000 Subject: [PATCH] Bug 18618: Correct Plack issues Split one command line into two in order to be accepted by Plack --- opac/svc/mana/getSuggestion | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/opac/svc/mana/getSuggestion b/opac/svc/mana/getSuggestion index 682b867f3b..9c33985ac6 100755 --- a/opac/svc/mana/getSuggestion +++ b/opac/svc/mana/getSuggestion @@ -74,7 +74,8 @@ if ( $local_suggestions and DateTime::Duration->compare( ($now - $timestamp), DU delete $local_suggestions->{timestamp}; delete $local_suggestions->{biblionumber}; foreach my $key ( sort keys %{ $local_suggestions }){ - push @biblios, Koha::Biblios->find( $local_suggestions->{ $key } ); + my $biblio = Koha::Biblios->find( $local_suggestions->{ $key } ); + push @biblios, $biblio->unblessed() if $biblio; } } -- 2.17.1