Skip to content

Commit

Permalink
Change Workflow::History SYNOPSIS
Browse files Browse the repository at this point in the history
The old description isn't aligned with the description of the API of the
 `add_history` method on the `Workflow` instance.
  • Loading branch information
ehuelsmann committed Mar 29, 2022
1 parent 6bb76cf commit 46a5799
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions lib/Workflow/History.pm
Expand Up @@ -76,9 +76,12 @@ This documentation describes version 1.57 of this package
my ( $self, $wf ) = @_;
my $current_user = $wf->context->param( 'current_user' );
# ... do your work with $ticket
$wf->add_history( action => 'create ticket',
user => $current_user->full_name,
description => "Ticket $ticket->{subject} successfully created" );
$wf->add_history(
{
action => 'create ticket',
user => $current_user->full_name,
description => "Ticket $ticket->{subject} successfully created"
});
}
# in your view (using TT2)
Expand Down

0 comments on commit 46a5799

Please sign in to comment.