Commit 6c81bce8 authored by Alex Vandiver's avatar Alex Vandiver
Browse files

Merge branch '4.2/crontool-template-obj' into 4.2-trunk

parents 55c6d2a2 eb37bdfc
......@@ -259,11 +259,11 @@ sub get_template {
unless ( $template =~ /\D/ ) {
# by id
my $template = RT::Template->new( RT->SystemUser );
$template->Load( $template );
my $template_obj = RT::Template->new( RT->SystemUser );
$template_obj->Load( $template );
die "Failed to load template '$template'"
unless $template->id;
return $template;
unless $template_obj->id;
return $template_obj;
}
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