From 039bb200de2507f81cafb88dfe826e74160d2fa2 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Tue, 18 Apr 2017 15:13:18 -0300 Subject: [PATCH] Bug 10357: Do not change the alerttype Previous patch modified the alerttype from "issue" to "issue_det" or "issue_ser". This is wrong, we do not want to modify this value, especially because it's used in C4::Letters::SendAlerts This patch uses a $referer variable instead, like it is already used in other scripts for redirection. Signed-off-by: Jonathan Druart Signed-off-by: Kyle M Hall --- .../bootstrap/en/modules/opac-alert-subscribe.tt | 2 ++ .../opac-tmpl/bootstrap/en/modules/opac-detail.tt | 4 ++-- .../bootstrap/en/modules/opac-serial-issues.tt | 4 ++-- opac/opac-alert-subscribe.pl | 14 +++++++------- opac/opac-detail.pl | 5 +---- opac/opac-serial-issues.pl | 10 ++-------- 6 files changed, 16 insertions(+), 23 deletions(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-alert-subscribe.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-alert-subscribe.tt index f195feb57a..b87072f83b 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-alert-subscribe.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-alert-subscribe.tt @@ -26,6 +26,7 @@ [% IF ( notes ) %]

[% notes %]

[% END %] + @@ -40,6 +41,7 @@ [% IF ( notes ) %]

[% notes %]

[% END %] + diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt index 8a386e5ec1..e4eabbeeee 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt @@ -813,9 +813,9 @@ [% IF ( subscription.letter ) %]