[Koha-bugs] [Bug 15822] STAFF Advanced search error date utils
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Tue Nov 22 11:10:32 CET 2016
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15822
Jonathan Druart <jonathan.druart at bugs.koha-community.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Version|3.22 |master
Severity|critical |major
--- Comment #16 from Jonathan Druart <jonathan.druart at bugs.koha-community.org> ---
I do not recreate, but the correct fix would be:
diff --git a/C4/Search.pm b/C4/Search.pm
index 4d5c0ed..235d49b 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 =>
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} };
Lowering the severity as it does not seem to affect a lot of people.
Please confirm that this change fixes the issue.
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list