Commit 310bd079 authored by John Kelsh's avatar John Kelsh Committed by Kevin Falcone
Browse files

Update RT::Template->Create to return failure message if requested when called.

parent af6cd52f
......@@ -256,7 +256,7 @@ sub Create {
$args{'Queue'} = $QueueObj->Id;
}
my $result = $self->SUPER::Create(
my ( $result, $msg ) = $self->SUPER::Create(
Content => $args{'Content'},
Queue => $args{'Queue'},
Description => $args{'Description'},
......@@ -264,7 +264,11 @@ sub Create {
Type => $args{'Type'},
);
return ($result);
if ( wantarray ) {
return ( $result, $msg );
} else {
return ( $result );
}
}
......
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