Bug 12497: Fix OPAC search history reachable by URL even when disabled
authorVictor Grousset <victor.grousset@biblibre.com>
Fri, 24 Nov 2017 11:02:47 +0000 (12:02 +0100)
committerNick Clemens <nick@bywatersolutions.com>
Thu, 14 Dec 2017 12:04:17 +0000 (12:04 +0000)
commitb90824527b47e78e56e2f602199481325beeec15
treec5d6422acbdd76131e1b533492c7d3dada62bc30
parentadb37ce8cf10fee1c81ee35d703ec3a81c82697d
Bug 12497: Fix OPAC search history reachable by URL even when disabled

Test plan:
1. Set EnableOpacSearchHistory syspref to "Keep"
2. Make a search in the OPAC
3. Go to /cgi-bin/koha/opac-search-history.pl
4. Set the EnableOpacSearchHistory syspref to "Don't keep"
5. Refresh the OPAC page to show that history is still accessible
6. Apply the patch
7. Refresh the OPAC page, you should end on the 404 page
8. Set EnableOpacSearchHistory syspref to "Keep"
9. Go to /cgi-bin/koha/opac-search-history.pl which should be reachable

Signed-off-by: David Bourgault <david.bourgault@inlibro.com>
Signed-off-by: Charles Farmer <charles.farmer@inLibro.com>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
opac/opac-search-history.pl