]> git.koha-community.org Git - koha.git/commit
Bug 35019: Add a CSRF token when deleting news
authorEmily-Rose Francoeur <emily-rose.francoeur@inLibro.com>
Tue, 10 Oct 2023 17:30:43 +0000 (13:30 -0400)
committerTomas Cohen Arazi <tomascohen@theke.io>
Fri, 20 Oct 2023 20:22:02 +0000 (17:22 -0300)
commitf4b858778268730d49dc9f11d9d2d9bf6faf3f6e
tree89af7a77ab65f6e839b7a080ed123a47deef6c71
parentd742f29d77ee1e8a6f825678ce879d4a04037c92
Bug 35019: Add a CSRF token when deleting news

I add a CSRF token as a parameter in the link for deleting a news
entry, which solves the problem.

TEST PLAN
1) Apply the patch
2) Go to "Tools > News > New entry"
3) "Display location" should be set to "Staff interface"
4) Fill in the fields
5) Return to the homepage
6) Delete the created news entry
7) The "Additional contents" page is displayed, and the deleted news
   entry no longer appears
8) Return to the homepage; the news entry no longer displays

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Edit: adapted the template change to latest master inline
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
koha-tmpl/intranet-tmpl/prog/en/modules/intranet-main.tt
mainpage.pl