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>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
(cherry picked from commit 14a690078a)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
This commit is contained in:
parent
712165c26d
commit
5eb927b26d
|
|
@ -167,7 +167,7 @@ $template->param(
|
|||
gst_values => \@gst_values,
|
||||
);
|
||||
|
||||
my $suggestion = GetSuggestionInfoFromBiblionumber($order->{biblionumber});
|
||||
my $suggestion = GetSuggestionInfoFromBiblionumber($order->biblionumber);
|
||||
if ( $suggestion ) {
|
||||
$template->param( suggestion => $suggestion );
|
||||
}
|
||||
|
|
@ -191,7 +191,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