Bugzilla – Attachment 131186 Details for
Bug 30147
OpacBrowseResults causing error on detail page
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 30147: Fix modules usage in opac-detail.pl
Bug-30147-Fix-modules-usage-in-opac-detailpl.patch (text/plain), 1.62 KB, created by
Martin Renvoize
on 2022-03-01 15:03:29 UTC
(
hide
)
Description:
Bug 30147: Fix modules usage in opac-detail.pl
Filename:
MIME Type:
Creator:
Martin Renvoize
Created:
2022-03-01 15:03:29 UTC
Size:
1.62 KB
patch
obsolete
>From 1b66756a40caee8c5a49fdd37897e12c1596cc39 Mon Sep 17 00:00:00 2001 >From: Fridolin Somers <fridolin.somers@biblibre.com> >Date: Thu, 24 Feb 2022 14:24:18 -1000 >Subject: [PATCH] Bug 30147: Fix modules usage in opac-detail.pl > >On the ktd sample database when trying to go to the detail page from the result list: >Undefined subroutine &CGI::Compile::ROOT::kohadevbox_koha_opac_opac_2ddetail_2epl::searchResults called at /kohadevbox/koha/opac/opac-detail.pl line 260 >Turning off OpacBrowseResults makes the error disappear. > >In opac-detail.pl, use C4::Search is missing searchResults and getRecords > >To test: >- Search for something that gives several result pages in OPAC, example: e >- Switch to one of the last pages using link on top of results, example: 10 >- Open any of the records listed in detail view >- Verify that the error is shown >- Apply patch and repeat, error is gone and browsing behaves as expected > >Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> >Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> >--- > opac/opac-detail.pl | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/opac/opac-detail.pl b/opac/opac-detail.pl >index 1c705db734..a2022a0148 100755 >--- a/opac/opac-detail.pl >+++ b/opac/opac-detail.pl >@@ -32,7 +32,7 @@ use C4::Koha qw( > GetNormalizedOCLCNumber > GetNormalizedUPC > ); >-use C4::Search qw( new_record_from_zebra ); >+use C4::Search qw( new_record_from_zebra searchResults getRecords ); > use C4::Serials qw( CountSubscriptionFromBiblionumber SearchSubscriptions GetLatestSerials ); > use C4::Output qw( parametrized_url output_html_with_http_headers ); > use C4::Biblio qw( >-- >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 30147
:
131096
|
131138
| 131186