From 46a5799a5d1d760ddaa322d5c31324316fcf4e4a Mon Sep 17 00:00:00 2001 From: Erik Huelsmann Date: Tue, 29 Mar 2022 22:40:48 +0200 Subject: [PATCH] Change Workflow::History SYNOPSIS The old description isn't aligned with the description of the API of the `add_history` method on the `Workflow` instance. --- lib/Workflow/History.pm | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/lib/Workflow/History.pm b/lib/Workflow/History.pm index b28b1d0..aa291ad 100644 --- a/lib/Workflow/History.pm +++ b/lib/Workflow/History.pm @@ -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)