]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 1632994 - [Bugzilla.App] Can't use an undefined value as a subroutine reference...
authordklawren <dklawren@users.noreply.github.com>
Tue, 28 Apr 2020 16:18:54 +0000 (12:18 -0400)
committerGitHub <noreply@github.com>
Tue, 28 Apr 2020 16:18:54 +0000 (12:18 -0400)
Bugzilla/Error.pm

index cdee7c879ac380b198f153685689e1f38f1933be..c163360c44fad9c8fdb1c03cf2cc10b6255c9e83 100644 (file)
@@ -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;
     }
   }