Bugzilla – Attachment 140317 Details for
Bug 31396
OPAC shelf browser broken after removal GetItemsInfo from opac-detail
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 31396: Fix incorrect attribute access in opac-detail.pl
Bug-31396-Fix-incorrect-attribute-access-in-opac-d.patch (text/plain), 1.18 KB, created by
Tomás Cohen Arazi (tcohen)
on 2022-09-07 15:52:19 UTC
(
hide
)
Description:
Bug 31396: Fix incorrect attribute access in opac-detail.pl
Filename:
MIME Type:
Creator:
Tomás Cohen Arazi (tcohen)
Created:
2022-09-07 15:52:19 UTC
Size:
1.18 KB
patch
obsolete
>From e928e0e778075bbd768288abdb4fca0e455f2a60 Mon Sep 17 00:00:00 2001 >From: Tomas Cohen Arazi <tomascohen@theke.io> >Date: Wed, 7 Sep 2022 08:49:14 -0700 >Subject: [PATCH] Bug 31396: Fix incorrect attribute access in opac-detail.pl > >To test: >1. Have an item with a callnumber defined >2. Have OPACShelfBrowser enabled >3. Open the record detailed view in the OPAC >4. Click on 'Browse shelf' >=> FAIL: It explodes >5. Apply this patch >6. Repeat 4 >=> SUCCESS: It works! >7. Sign off :-D > >Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> >--- > 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 a7289f3d0a..02acf84e1f 100755 >--- a/opac/opac-detail.pl >+++ b/opac/opac-detail.pl >@@ -1096,7 +1096,7 @@ if (C4::Context->preference("OPACShelfBrowser")) { > ); > > # in which tab shelf browser should open ? >- if (grep { $starting_itemnumber == $_->itemnumber } @itemloop) { >+ if (grep { $starting_itemnumber == $_->{itemnumber} } @itemloop) { > $template->param(shelfbrowser_tab => 'holdings'); > } else { > $template->param(shelfbrowser_tab => 'otherholdings'); >-- >2.37.3
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 31396
:
140317
|
140321