From 0c91e9499929f8a5ff96af64bed6971f4a6db57c Mon Sep 17 00:00:00 2001 From: Lucas Gass Date: Mon, 29 Aug 2022 21:48:01 +0000 Subject: [PATCH] Bug 31486: Redirect to proper page after message deletion To test: 1. Go to a patron account and create some messages 2. Try deleting some from both the patron details page and the patron checkout page. 3. Notice that is you are on the patron checkout page and delete a message you are then redirected to the patron details page. 4. Apply patch 5. Try deleting messages from both pages and confirm you are redirected back to that same page and the message is properly deleted. Signed-off-by: Andrew Fuerste-Henry Signed-off-by: Katrin Fischer Signed-off-by: Tomas Cohen Arazi (cherry picked from commit a93d6fa8530aa2b92d7b443e1361e4428c1c4f1b) Signed-off-by: Lucas Gass --- koha-tmpl/intranet-tmpl/prog/en/includes/patron_messages.inc | 4 ++++ koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/patron_messages.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/patron_messages.inc index b771dd365f..33acbd170c 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/patron_messages.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/patron_messages.inc @@ -278,7 +278,11 @@ "[% patron_message.message | html %]" [% IF patron_message.branchcode == Branches.GetLoggedInBranchcode OR Koha.Preference('AllowAllMessageDeletion') %] + [% IF moremember %] Delete + [% ELSE %] + Delete + [% END %] [% END %] [% END %] diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt index 8d509b56a2..4c328908e2 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt @@ -92,7 +92,7 @@ [% END %]
- [% INCLUDE 'patron_messages.inc' %] + [% INCLUDE 'patron_messages.inc' moremember = 1 %]

-- 2.39.5