From c788a81c719135114443b865e099834cd988b9a7 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Wed, 22 Feb 2023 11:02:39 +0100 Subject: [PATCH] Bug 33020: Add missing Koha::Logger->history Content-Type: text/plain; charset=utf-8 Signed-off-by: Marcel de Rooy --- Koha/Logger.pm | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Koha/Logger.pm b/Koha/Logger.pm index 4d2630ff6a..66c78a6735 100644 --- a/Koha/Logger.pm +++ b/Koha/Logger.pm @@ -204,6 +204,14 @@ sub context { return $self; } +sub history { + my ( $self, @history) = @_; + if ( @history ) { + $self->{history} = \@history; + } + return $self->{history} || []; +} + =head1 AUTHOR Kyle M Hall, Ekyle@bywatersolutions.comE -- 2.30.2