Bugzilla – Attachment 127354 Details for
Bug 29416
Regression: information from existing bib no longer populating on suggest for purchase
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 29416: (bug 28941 follow-up) Restore suggestion prefill
Bug-29416-bug-28941-follow-up-Restore-suggestion-p.patch (text/plain), 1.54 KB, created by
Marcel de Rooy
on 2021-11-05 10:46:12 UTC
(
hide
)
Description:
Bug 29416: (bug 28941 follow-up) Restore suggestion prefill
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2021-11-05 10:46:12 UTC
Size:
1.54 KB
patch
obsolete
>From 80527e544a2fac7fb69d0691cf669cc85027595a Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Fri, 5 Nov 2021 10:13:47 +0100 >Subject: [PATCH] Bug 29416: (bug 28941 follow-up) Restore suggestion prefill >Content-Type: text/plain; charset=utf-8 > >From commit 586bed1319592e05f5dc3acf64a1dba8cae69d6b > Bug 28941: Filter suggestion inputs at the OPAC > >But later in the script we send { suggestion => %$suggestion } to the >template and so erase the variable previously passed. > >Test plan: >Login at the OPAC >Go to the bibliographic detail page >Suggest for purchase >=> The form must be prefilled! > >Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >--- > opac/opac-suggestions.pl | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > >diff --git a/opac/opac-suggestions.pl b/opac/opac-suggestions.pl >index 6f6e91b45a..9c965041ce 100755 >--- a/opac/opac-suggestions.pl >+++ b/opac/opac-suggestions.pl >@@ -254,7 +254,7 @@ my @mandatoryfields; > } > if ( $biblionumber ) { > my $biblio = Koha::Biblios->find($biblionumber); >- $template->param( >+ $suggestion = { > biblionumber => $biblio->biblionumber, > title => $biblio->title, > author => $biblio->author, >@@ -263,7 +263,7 @@ my @mandatoryfields; > publishercode => $biblio->biblioitem->publishercode, > collectiontitle => $biblio->biblioitem->collectiontitle, > place => $biblio->biblioitem->place, >- ); >+ }; > } > } > >-- >2.20.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 29416
:
127347
|
127354
|
127356