@@ -, +, @@ items.onloan=0000-00-00 output_pref({ dt => dt_from_string( $date ) }) output_pref({ str => $date }) - Set items.onloan=0000-00-00 (UPDATE items SET onloan='0000-00-00') - Execute a search --- C4/Search.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/C4/Search.pm +++ a/C4/Search.pm @@ -2093,7 +2093,7 @@ sub searchResults { { $onloan_count++; my $key = $prefix . $item->{onloan} . $item->{barcode}; - $onloan_items->{$key}->{due_date} = output_pref( { dt => 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} }; --