[Koha-bugs] [Bug 35266] opac-MARCdetail: Can't call method "metadata" on an undefined value

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon Nov 13 10:17:04 CET 2023


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=35266

--- Comment #5 from David Nind <david at davidnind.com> ---
This is how I tested (using KTD):

1. In the OPAC, attempt to view a record that does not exist - normal view:
   . http://127.0.0.1:8080/cgi-bin/koha/opac-detail.pl?biblionumber=9999
   => redirected to the 404 page

2. In the OPAC, attempt to view a record that does not exist - ISBD view:
   . 127.0.0.1:8080/cgi-bin/koha/opac-ISBDdetail.pl?biblionumber=9999
   => redirected to the 404 page

3. In the OPAC, attempt to view a record that does not exist - MARC view:
   . 127.0.0.1:8080/cgi-bin/koha/opac-MARCdetail.pl?biblionumber=9999
   => Get an error trace:
      Can't call method "metadata" on an undefined value at
/kohadevbox/koha/opac/opac-MARCdetail.pl line 95
      ....

4. Apply the patch, restart_all, fresh browser (cache cleared).

5. Repeat step 3
   => now redirected to the 404 page, no error trace

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list