From d099dbfc8ae9faa9d167f683f730e2d52b75b049 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Fr=C3=A9d=C3=A9ric=20Demians?= Date: Thu, 31 Dec 2015 19:25:10 +0100 Subject: [PATCH] Bug 15429 Followup to avoid test failing --- C4/Letters.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/Letters.pm b/C4/Letters.pm index 1fe54a7c23..f6f46e3c72 100644 --- a/C4/Letters.pm +++ b/C4/Letters.pm @@ -787,7 +787,7 @@ sub _parseletter { # Work on a local copy of $values_in (passed by reference) to avoid side effects # in callers ( by changing / formatting values ) - my $values = { %$values_in }; + my $values = $values_in ? { %$values_in } : {}; if ( $table eq 'reserves' && $values->{'waitingdate'} ) { my @waitingdate = split /-/, $values->{'waitingdate'}; -- 2.39.5