]> git.koha-community.org Git - koha.git/commit
Bug 23276: Do not display tag if pref TagsEnabled is off
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Wed, 20 Nov 2019 14:40:10 +0000 (15:40 +0100)
committerLucas Gass <lucas@bywatersolutions.com>
Wed, 17 Jun 2020 22:35:51 +0000 (22:35 +0000)
commit9893fb4ec5a480b7adcbb27f321f7387a4f38f45
tree5a10518c689f3b995ae2f194415f62b47acb21f8
parent29efdfc9af72315f8886b7755d6d6f3c6516a427
Bug 23276: Do not display tag if pref TagsEnabled is off

If the pref TagsEnabled is off we should not display the tags at the
OPAC.
There is a message to tell that tags system is disabled, but the tags
are displayed.

We should redirect to 404 like we do in opac-topissues.pl and
opac-suggestions.pl.

Test plan:
- Turn TagsEnabled on
- Add some tags
- Turn TagsEnabled off
- Hit /cgi-bin/koha/opac-tags.pl
=> Without this patch you see a warning messaging saying that the tag
system is disabled, but the tags are displayed
=> With this patch you get a 404 redirect

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit 6fc316d2eef5945b20a14bec81e2daa57696dd81)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-tags.tt
opac/opac-tags.pl