Commit eb37bdfc authored by Jim Brandt's avatar Jim Brandt
Browse files

Rename template object variable

The fix in b6efaa8e removed caching and loaded a template
object, but the variable name $template used for the object
overwrote the initial $template variable which had the
template id/name. Rename to $template_obj.
parent cb162847
...@@ -259,11 +259,11 @@ sub get_template { ...@@ -259,11 +259,11 @@ sub get_template {
unless ( $template =~ /\D/ ) { unless ( $template =~ /\D/ ) {
# by id # by id
my $template = RT::Template->new( RT->SystemUser ); my $template_obj = RT::Template->new( RT->SystemUser );
$template->Load( $template ); $template_obj->Load( $template );
die "Failed to load template '$template'" die "Failed to load template '$template'"
unless $template->id; unless $template_obj->id;
return $template; return $template_obj;
} }
my $queue = $ticket->Queue; my $queue = $ticket->Queue;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment