]> git.koha-community.org Git - koha.git/commit
Bug 8572: invalid auth shouldn't cause error
authorJared Camins-Esakov <jcamins@cpbibliography.com>
Sat, 4 Aug 2012 17:48:00 +0000 (13:48 -0400)
committerChris Cormack <chrisc@catalyst.net.nz>
Thu, 9 Aug 2012 10:19:06 +0000 (22:19 +1200)
commit0f30816af667de2eef3298c298ed36e36a23902d
treec0564726a5d45029da6dc9e905eef15e44333b47
parentfbaf56562f5b480f5a2b0ceccceb8c6f3eef2279
Bug 8572: invalid auth shouldn't cause error

Prior to this patch, attempting to view an invalid authority in the
OPAC gave a system error instead of a 404. With this patch, the user
will just get a 404, as is the case with invalid bibs.

To test:
1) Try to view an invalid authority by going to:
   /cgi-bin/koha/opac-authoritiesdetail.pl?authid=999999999999
   (presuming that you don't have an authority with authid 999999999999
   in your database) before and after applying this patch

Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
opac/opac-authoritiesdetail.pl