From c9f7049ba6e44a5bdf19686d091b4d9b22972a44 Mon Sep 17 00:00:00 2001 From: Marcel de Rooy Date: Thu, 17 Nov 2016 13:55:08 +0100 Subject: [PATCH] Bug 17502: [Follow-up] Better use the str parameter Content-Type: text/plain; charset=utf-8 Constructions like output_pref({ dt => dt_from_string( $str ), ... could be simplified with output_pref({ str => $str, ... Test plan: See previous plan. Signed-off-by: Marcel de Rooy --- C4/Search.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/Search.pm b/C4/Search.pm index 2867d50..a18f202 100644 --- a/C4/Search.pm +++ b/C4/Search.pm @@ -2084,7 +2084,7 @@ sub searchResults { { $onloan_count++; my $key = $prefix . $item->{onloan} . $item->{barcode}; - $onloan_items->{$key}->{due_date} = output_pref( { dt => scalar dt_from_string( $item->{onloan} ), dateonly => 1 } ); + $onloan_items->{$key}->{due_date} = output_pref({ str => $item->{onloan}, dateonly => 1 }); $onloan_items->{$key}->{count}++ if $item->{$hbranch}; $onloan_items->{$key}->{branchname} = $item->{branchname}; $onloan_items->{$key}->{location} = $shelflocations->{ $item->{location} }; -- 2.1.4