From 45fd9c2e528f2e9577e48a195347747aa82952cd 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 (cherry picked from commit 0c91e9499929f8a5ff96af64bed6971f4a6db57c) Signed-off-by: Arthur Suzuki --- 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 fa35511bbc..b822c9a1ff 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/patron_messages.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/patron_messages.inc @@ -218,7 +218,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 f944ac171c..d86429da09 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt @@ -99,7 +99,7 @@ [% END %]
- [% INCLUDE 'patron_messages.inc' %] + [% INCLUDE 'patron_messages.inc' moremember = 1 %]
-- 2.39.5