From 27e5e2edd4b5b1728471bcd7a69cb207f0768636 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 Signed-off-by: Marcel de Rooy Signed-off-by: Nick Clemens --- 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