Bugzilla – Attachment 140321 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.32 KB, created by
Joonas Kylmälä
on 2022-09-07 16:17:12 UTC
(
hide
)
Description:
Bug 31396: Fix incorrect attribute access in opac-detail.pl
Filename:
MIME Type:
Creator:
Joonas Kylmälä
Created:
2022-09-07 16:17:12 UTC
Size:
1.32 KB
patch
obsolete
>From 4c94ae6e19ebd1bf035374ca71d61db98e4eed73 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 >MIME-Version: 1.0 >Content-Type: text/plain; charset=UTF-8 >Content-Transfer-Encoding: 8bit > >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> > >Signed-off-by: Joonas Kylmälä <joonas.kylmala@iki.fi> >--- > 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.30.2
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