]> git.koha-community.org Git - koha.git/commit
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)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Thu, 7 Dec 2017 13:09:52 +0000 (10:09 -0300)
commit14f8bce9aeae1126b9fe611a8af5e2ec7a4e72dc
treeb3c982f34e5b36ca5fe939896126a4a70082ca87
parentedc8031f4a2347e65f424eba8a56b7ddd35ca42f
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>
opac/opac-search-history.pl