Bug 28146: Respect ReplytoDefault in error pages
Test plan: Fill ReplytoDefault. Check an error page on OPAC and intranet. Verify that the send mail link refers to that email address. Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> Signed-off-by: Laura_Escamilla <laura.escamilla@bywatersolutions.com>
This commit is contained in:
parent
c681b0a18f
commit
b175e80f8c
|
|
@ -23,7 +23,6 @@ use C4::Context;
|
|||
use List::MoreUtils qw( any );
|
||||
|
||||
my $query = CGI->new;
|
||||
my $admin = C4::Context->preference('KohaAdminEmailAddress');
|
||||
my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
|
||||
{
|
||||
template_name => 'errors/errorpage.tt',
|
||||
|
|
@ -33,7 +32,6 @@ my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
|
|||
}
|
||||
);
|
||||
$template->param(
|
||||
admin => $admin,
|
||||
errno => 400,
|
||||
);
|
||||
my $status = '400 Bad Request';
|
||||
|
|
|
|||
|
|
@ -23,7 +23,6 @@ use C4::Context;
|
|||
use List::MoreUtils qw( any );
|
||||
|
||||
my $query = CGI->new;
|
||||
my $admin = C4::Context->preference('KohaAdminEmailAddress');
|
||||
my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
|
||||
{
|
||||
template_name => 'errors/errorpage.tt',
|
||||
|
|
@ -33,7 +32,6 @@ my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
|
|||
}
|
||||
);
|
||||
$template->param(
|
||||
admin => $admin,
|
||||
errno => 401,
|
||||
);
|
||||
my $status = '401 Unauthorized';
|
||||
|
|
|
|||
|
|
@ -23,7 +23,6 @@ use C4::Context;
|
|||
use List::MoreUtils qw( any );
|
||||
|
||||
my $query = CGI->new;
|
||||
my $admin = C4::Context->preference('KohaAdminEmailAddress');
|
||||
my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
|
||||
{
|
||||
template_name => 'errors/errorpage.tt',
|
||||
|
|
@ -33,7 +32,6 @@ my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
|
|||
}
|
||||
);
|
||||
$template->param(
|
||||
admin => $admin,
|
||||
errno => 402,
|
||||
);
|
||||
my $status = '402 Payment Required';
|
||||
|
|
|
|||
|
|
@ -23,7 +23,6 @@ use C4::Context;
|
|||
use List::MoreUtils qw( any );
|
||||
|
||||
my $query = CGI->new;
|
||||
my $admin = C4::Context->preference('KohaAdminEmailAddress');
|
||||
my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
|
||||
{
|
||||
template_name => 'errors/errorpage.tt',
|
||||
|
|
@ -33,7 +32,6 @@ my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
|
|||
}
|
||||
);
|
||||
$template->param(
|
||||
admin => $admin,
|
||||
errno => 403,
|
||||
csrf_error => $ENV{'plack.middleware.Koha.CSRF'},
|
||||
);
|
||||
|
|
|
|||
|
|
@ -23,7 +23,6 @@ use C4::Context;
|
|||
use List::MoreUtils qw( any );
|
||||
|
||||
my $query = CGI->new;
|
||||
my $admin = C4::Context->preference('KohaAdminEmailAddress');
|
||||
my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
|
||||
{
|
||||
template_name => 'errors/errorpage.tt',
|
||||
|
|
@ -33,7 +32,6 @@ my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
|
|||
}
|
||||
);
|
||||
$template->param(
|
||||
admin => $admin,
|
||||
errno => 404,
|
||||
);
|
||||
my $status = '404 Not Found';
|
||||
|
|
|
|||
|
|
@ -23,7 +23,6 @@ use C4::Context;
|
|||
use List::MoreUtils qw( any );
|
||||
|
||||
my $query = CGI->new;
|
||||
my $admin = C4::Context->preference('KohaAdminEmailAddress');
|
||||
my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
|
||||
{
|
||||
template_name => 'errors/errorpage.tt',
|
||||
|
|
@ -33,7 +32,6 @@ my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
|
|||
}
|
||||
);
|
||||
$template->param(
|
||||
admin => $admin,
|
||||
errno => 500,
|
||||
);
|
||||
my $status = '500 Internal Server Error';
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
[% USE raw %]
|
||||
[% USE Koha %]
|
||||
[% SET admin = Koha.Preference('ReplytoDefault') || Koha.Preference('KohaAdminEmailAddress') %]
|
||||
[% PROCESS 'i18n.inc' %]
|
||||
[% INCLUDE 'doc-head-open.inc' %]
|
||||
<title
|
||||
|
|
|
|||
|
|
@ -1,9 +1,11 @@
|
|||
[% USE raw %]
|
||||
[% USE AdditionalContents %]
|
||||
[% USE Koha %]
|
||||
[% PROCESS 'i18n.inc' %]
|
||||
[% PROCESS 'html_helpers.inc' %]
|
||||
[% SET OpacNav = AdditionalContents.get( location => "OpacNav", lang => lang, library => logged_in_user.branchcode || default_branch, blocktitle => 0 ) %]
|
||||
[% SET OpacNavBottom = AdditionalContents.get( location => "OpacNavBottom", lang => lang, library => logged_in_user.branchcode || default_branch, blocktitle => 0 ) %]
|
||||
[% SET admin = Koha.Preference('ReplytoDefault') || Koha.Preference('KohaAdminEmailAddress') %]
|
||||
[% INCLUDE 'doc-head-open.inc' %]
|
||||
<title
|
||||
>[% FILTER collapse %]
|
||||
|
|
|
|||
|
|
@ -23,7 +23,6 @@ use C4::Context;
|
|||
use List::MoreUtils qw( any );
|
||||
|
||||
my $query = CGI->new;
|
||||
my $admin = C4::Context->preference('KohaAdminEmailAddress');
|
||||
my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
|
||||
{
|
||||
template_name => "errors/errorpage.tt",
|
||||
|
|
@ -33,7 +32,6 @@ my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
|
|||
}
|
||||
);
|
||||
$template->param(
|
||||
admin => $admin,
|
||||
errno => 400,
|
||||
);
|
||||
my $status = '400 Bad Request';
|
||||
|
|
|
|||
|
|
@ -23,7 +23,6 @@ use C4::Context;
|
|||
use List::MoreUtils qw( any );
|
||||
|
||||
my $query = CGI->new;
|
||||
my $admin = C4::Context->preference('KohaAdminEmailAddress');
|
||||
my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
|
||||
{
|
||||
template_name => "errors/errorpage.tt",
|
||||
|
|
@ -33,7 +32,6 @@ my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
|
|||
}
|
||||
);
|
||||
$template->param(
|
||||
admin => $admin,
|
||||
errno => 401,
|
||||
);
|
||||
my $status = '401 Unauthorized';
|
||||
|
|
|
|||
|
|
@ -23,7 +23,6 @@ use C4::Context;
|
|||
use List::MoreUtils qw( any );
|
||||
|
||||
my $query = CGI->new;
|
||||
my $admin = C4::Context->preference('KohaAdminEmailAddress');
|
||||
my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
|
||||
{
|
||||
template_name => "errors/errorpage.tt",
|
||||
|
|
@ -33,7 +32,6 @@ my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
|
|||
}
|
||||
);
|
||||
$template->param(
|
||||
admin => $admin,
|
||||
errno => 402,
|
||||
);
|
||||
my $status = '402 Payment Required';
|
||||
|
|
|
|||
|
|
@ -23,7 +23,6 @@ use C4::Context;
|
|||
use List::MoreUtils qw( any );
|
||||
|
||||
my $query = CGI->new;
|
||||
my $admin = C4::Context->preference('KohaAdminEmailAddress');
|
||||
my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
|
||||
{
|
||||
template_name => "errors/errorpage.tt",
|
||||
|
|
@ -33,7 +32,6 @@ my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
|
|||
}
|
||||
);
|
||||
$template->param(
|
||||
admin => $admin,
|
||||
errno => 403,
|
||||
csrf_error => $ENV{'plack.middleware.Koha.CSRF'},
|
||||
);
|
||||
|
|
|
|||
|
|
@ -23,7 +23,6 @@ use C4::Context;
|
|||
use List::MoreUtils qw( any );
|
||||
|
||||
my $query = CGI->new;
|
||||
my $admin = C4::Context->preference('KohaAdminEmailAddress');
|
||||
my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
|
||||
{
|
||||
template_name => "errors/errorpage.tt",
|
||||
|
|
@ -33,7 +32,6 @@ my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
|
|||
}
|
||||
);
|
||||
$template->param(
|
||||
admin => $admin,
|
||||
errno => 404,
|
||||
);
|
||||
my $status = '404 Not Found';
|
||||
|
|
|
|||
|
|
@ -23,7 +23,6 @@ use C4::Context;
|
|||
use List::MoreUtils qw( any );
|
||||
|
||||
my $query = CGI->new;
|
||||
my $admin = C4::Context->preference('KohaAdminEmailAddress');
|
||||
my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
|
||||
{
|
||||
template_name => "errors/errorpage.tt",
|
||||
|
|
@ -33,7 +32,6 @@ my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
|
|||
}
|
||||
);
|
||||
$template->param(
|
||||
admin => $admin,
|
||||
errno => 500,
|
||||
);
|
||||
my $status = '500 Internal Server Error';
|
||||
|
|
|
|||
Loading…
Reference in New Issue