Bugzilla – Attachment 151006 Details for
Bug 28844
Suggestion from existing title can alert patron in error
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 28844: Replace GetSuggestionFromBiblionumber
Bug-28844-Replace-GetSuggestionFromBiblionumber.patch (text/plain), 1.62 KB, created by
Jonathan Druart
on 2023-05-10 13:25:35 UTC
(
hide
)
Description:
Bug 28844: Replace GetSuggestionFromBiblionumber
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2023-05-10 13:25:35 UTC
Size:
1.62 KB
patch
obsolete
>From 7853e2243c132d7988dfbd99a27241a86096fd18 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Wed, 10 May 2023 15:21:05 +0200 >Subject: [PATCH] Bug 28844: Replace GetSuggestionFromBiblionumber > >--- > C4/Acquisition.pm | 16 +++++++++------- > 1 file changed, 9 insertions(+), 7 deletions(-) > >diff --git a/C4/Acquisition.pm b/C4/Acquisition.pm >index 6873a67e854..ba4ed22cd76 100644 >--- a/C4/Acquisition.pm >+++ b/C4/Acquisition.pm >@@ -22,7 +22,7 @@ use Modern::Perl; > use Carp qw( carp croak ); > use Text::CSV_XS; > use C4::Context; >-use C4::Suggestions qw( GetSuggestion GetSuggestionFromBiblionumber ModSuggestion ); >+use C4::Suggestions qw( GetSuggestion ModSuggestion ); > use C4::Biblio qw( GetMarcFromKohaField GetMarcStructure IsMarcStructureInternal ); > use C4::Contract qw( GetContract ); > use C4::Log qw( logaction ); >@@ -1386,12 +1386,14 @@ sub ModReceiveOrder { > $order->{invoice_unitprice} ||= $order->{unitprice}; > $order->{invoice_currency} ||= Koha::Acquisition::Currencies->get_active->currency; > >- my $suggestionid = GetSuggestionFromBiblionumber( $biblionumber ); >- if ($suggestionid) { >- ModSuggestion( {suggestionid=>$suggestionid, >- STATUS=>'AVAILABLE', >- biblionumber=> $biblionumber} >- ); >+ if ( $order->{suggestionid} ) { >+ ModSuggestion( >+ { >+ suggestionid => $order->{suggestionid}, >+ STATUS => 'AVAILABLE', >+ biblionumber => $biblionumber >+ } >+ ); > } > > my $result_set = $dbh->selectrow_arrayref( >-- >2.25.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 28844
:
151001
|
151002
|
151003
|
151004
|
151005
|
151006
|
151007
|
153157
|
153158
|
153159
|
153160
|
153161
|
153162
|
153163
|
153174
|
153175
|
153176
|
158982
|
158983
|
158984
|
158985
|
158986
|
158987
|
158988
|
158989
|
158990
|
159759
|
159760
|
159761
|
159762
|
159763
|
159764
|
159765
|
159766
|
159767
|
159768