]> 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)
committerFridolin Somers <fridolin.somers@biblibre.com>
Thu, 21 Dec 2017 08:13:31 +0000 (09:13 +0100)
commit41b14a29e73ac0e0fe8d6517425a78f048cc6984
treef920687f26bda5ff960613fb57caf20d0e44ed4d
parent42ac628d7d2a584cc4bddfe86e8f0fce8a6ff54f
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>
(cherry picked from commit b90824527b47e78e56e2f602199481325beeec15)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
opac/opac-search-history.pl