Bugzilla – Attachment 127356 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.55 KB, created by
Nick Clemens (kidclamp)
on 2021-11-05 10:52:04 UTC
(
hide
)
Description:
Bug 29416: (bug 28941 follow-up) Restore suggestion prefill
Filename:
MIME Type:
Creator:
Nick Clemens (kidclamp)
Created:
2021-11-05 10:52:04 UTC
Size:
1.55 KB
patch
obsolete
>From 7b80e0499365f04cc7067c7083167683dd9505b2 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 > >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> > >Signed-off-by: Nick Clemens <nick@bywatersolutions.com> >--- > 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