From 3efe55d8db1f792d40ee3964cc3eba610576eadc Mon Sep 17 00:00:00 2001 From: Marcel de Rooy Date: Thu, 17 Jun 2021 09:38:15 +0000 Subject: [PATCH] Bug 28582: Fix hashref in a warning message Can't enqueue letter HASH(0x55edf1806850) Test plan: If you cancel an article request when there is no email address (no branch email, no KohaAdminEmailAddress), Koha warns. Verify that the warning now contains the letter code. Signed-off-by: Marcel de Rooy Signed-off-by: Martin Renvoize Signed-off-by: Jonathan Druart --- Koha/ArticleRequest.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Koha/ArticleRequest.pm b/Koha/ArticleRequest.pm index 2c47dd03fe..6b8809bc33 100644 --- a/Koha/ArticleRequest.pm +++ b/Koha/ArticleRequest.pm @@ -126,7 +126,7 @@ sub notify { borrowernumber => $self->borrowernumber, message_transport_type => 'email', } - ) or warn "can't enqueue letter $letter"; + ) or warn "can't enqueue letter ". $letter->{code}; } } -- 2.39.5