From 52df27ff6f221352c937f276bde2bbf7c64a21f8 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Thu, 19 Aug 2021 12:34:58 +0200 Subject: [PATCH] Bug 28881: (bug 23376 follow-up) Fix suggestion display on order receive page On bug 23376 we replaced $order, from hashref Koha::Acq::Order, but 2 occurrences have not been corrected. It causes a bug on the order receive page when the bib is linked with a suggestion. Test plan: Create an order from bib A, create a suggestion for purchase on bib A (OPAC) Receive the order. Without the patch: Notice the "Suggested by: (suggestion #)" With the patch you see the info of the suggester Signed-off-by: David Nind Signed-off-by: Marcel de Rooy Signed-off-by: Jonathan Druart --- acqui/orderreceive.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/acqui/orderreceive.pl b/acqui/orderreceive.pl index f684a8ed7a..588b465d38 100755 --- a/acqui/orderreceive.pl +++ b/acqui/orderreceive.pl @@ -164,7 +164,7 @@ $template->param( gst_values => \@gst_values, ); -my $suggestion = GetSuggestionInfoFromBiblionumber($order->{biblionumber}); +my $suggestion = GetSuggestionInfoFromBiblionumber($order->biblionumber); if ( $suggestion ) { $template->param( suggestion => $suggestion ); } @@ -188,7 +188,7 @@ foreach my $period (@$periods) { { b_id => $r->{budget_id}, b_txt => $r->{budget_name}, - b_sel => ( $r->{budget_id} == $order->{budget_id} ) ? 1 : 0, + b_sel => ( $r->{budget_id} == $order->budget_id ) ? 1 : 0, }; } -- 2.39.5