]> git.koha-community.org Git - koha.git/commit
Bug 10217 - Make sure direct links to detail views work when there is no session
authorMagnus Enger <magnus@enger.priv.no>
Wed, 8 May 2013 10:03:48 +0000 (12:03 +0200)
committerJared Camins-Esakov <jcamins@cpbibliography.com>
Sun, 12 May 2013 13:46:12 +0000 (09:46 -0400)
commitffe732485a469332ea7314a4826b4cc6f97c85f3
tree5c1b5f6fe946f854140bbfaf379be6c31bac9815
parent978d7a97323447ab4802a42cebb838cfef1a2845
Bug 10217 - Make sure direct links to detail views work when there is no session

To reproduce:
- Make sure you do not have a session for the OPAC you will be testing
  with. Delete the CGISESSID session cookie if you have one.
- Go directly to a detail view, e.g.:
  /cgi-bin/koha/opac-detail.pl?biblionumber=1
- Observe the error "Can't use an undefined value as a HASH
  reference at /home/magnus/scripts/kohadev/opac/opac-detail.pl line 445."

To test:
- Apply the patch
- Reload the page with the error
- You should now see the detail view of the record, as usual

Thanks to Chris Cormack who suggested the fix for this!

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Tested according to test plan, confirmed patch fixes the problem.
All tests and QA script pass.
Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>
(cherry picked from commit 51a1e8854830d72e42dbfe313a5082ccd5f48688)

Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>
opac/opac-detail.pl