Bug 31396

Summary: OPAC shelf browser broken after removal GetItemsInfo from opac-detail
Product: Koha Reporter: Owen Leonard <oleonard>
Component: Architecture, internals, and plumbingAssignee: Tomás Cohen Arazi (tcohen) <tomascohen>
Status: CLOSED FIXED QA Contact: Joonas Kylmälä <joonas.kylmala>
Severity: major    
Priority: P5 - low CC: jonathan.druart, joonas.kylmala, lucas, m.de.rooy, nick, testopia, tomascohen
Version: unspecified   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: Trivial patch
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
22.11.00
Circulation function:
Bug Depends on: 31313    
Bug Blocks:    
Attachments: Bug 31396: Fix incorrect attribute access in opac-detail.pl
Bug 31396: Fix incorrect attribute access in opac-detail.pl

Description Owen Leonard 2022-08-18 18:13:25 UTC
The OPAC detail page works fine but if you click any "Browse shelf" link it will trigger an error:

Can't call method "itemnumber" on unblessed reference at /kohadevbox/koha/opac/opac-detail.pl line 1117
Comment 1 Katrin Fischer 2022-09-07 08:20:33 UTC
Cofirmed!
Comment 2 Tomás Cohen Arazi (tcohen) 2022-09-07 15:52:19 UTC
Created attachment 140317 [details] [review]
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>
Comment 3 Joonas Kylmälä 2022-09-07 16:17:12 UTC
Created attachment 140321 [details] [review]
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>

Signed-off-by: Joonas Kylmälä <joonas.kylmala@iki.fi>
Comment 4 Joonas Kylmälä 2022-09-07 16:17:38 UTC
Trivial, straight to PQA.
Comment 5 Tomás Cohen Arazi (tcohen) 2022-09-07 23:43:53 UTC
Pushed to master for 22.11.

Nice work everyone, thanks!