From: dklawren Date: Tue, 28 Apr 2020 16:18:54 +0000 (-0400) Subject: Bug 1632994 - [Bugzilla.App] Can't use an undefined value as a subroutine reference... X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=98cf7f73494f440365698e2237986df84d29829a;p=thirdparty%2Fbugzilla.git Bug 1632994 - [Bugzilla.App] Can't use an undefined value as a subroutine reference at /app/Bugzilla/Error.pm line 94 --- diff --git a/Bugzilla/Error.pm b/Bugzilla/Error.pm index cdee7c879..c163360c4 100644 --- a/Bugzilla/Error.pm +++ b/Bugzilla/Error.pm @@ -195,7 +195,8 @@ sub ThrowTemplateError { if (blessed($template_err) && $template_err->isa('Template::Exception')) { my $type = $template_err->type; if ($type =~ /^bugzilla\.(code|user)\.(.+)/) { - _throw_error("global/$1-error.html.tmpl", $2, $template_err->info); + my $logfunc = _make_logfunc(ucfirst(lc($1))); + _throw_error("global/$1-error.html.tmpl", $2, $template_err->info, $logfunc); return; } }