From e056872ea719ba33ee1f095d7c4da910baa9ecce Mon Sep 17 00:00:00 2001 From: Matt Blenkinsop Date: Tue, 3 Dec 2024 17:25:29 +0000 Subject: [PATCH] Bug 38606: Fix suggestion title search Test plan: 1) From a basket, click Add to basket and then From a suggestion 2) In the search bar at the top, type something into the Title field and hit enter 3) There will be 500 error 4) Apply patch and restart_all 5) Repeat steps 1-2, no error --- acqui/newordersuggestion.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/acqui/newordersuggestion.pl b/acqui/newordersuggestion.pl index 9d35ec48def..d734d2dd8c2 100755 --- a/acqui/newordersuggestion.pl +++ b/acqui/newordersuggestion.pl @@ -131,7 +131,7 @@ if ( $op eq 'connectDuplicate' ) { my $suggestions = [ Koha::Suggestions->search_limited( { ( $author ? ( author => $author ) : () ), - ( $title ? ( title => $title ) : () ), + ( $title ? ( 'me.title' => $title ) : () ), ( $publishercode ? ( publishercode => $publishercode ) : () ), STATUS => 'ACCEPTED' }, -- 2.39.3 (Apple Git-146)