https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15822
--- Comment #14 from Galen Charlton <[email protected]> --- In haste: I ran into this today and have diagnosed at least one cause of it. Suppose that the search results contain an item where item.onloan is set to '0000-00-00', not NULL. In that case, the following line in C4/Search.pm $onloan_items->{$key}->{due_date} = output_pref( { dt => dt_from_string( $item->{onloan} ), dateonly => 1 } ); ends up calling output_pref with the following parameters: { dt => 'dateonly', 1 => undef } Changing line 50 in Koha/DateUtils.pm from return if $date_string and $date_string =~ m|^0000-0|; to return undef if $date_string and $date_string =~ m|^0000-0|; works around that oddity. -- You are receiving this mail because: You are watching all bug changes. _______________________________________________ Koha-bugs mailing list [email protected] http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
