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 <david@davidnind.com> Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
parent
e25ecc8a04
commit
52df27ff6f
|
|
@ -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,
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue