https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15939
Bug ID: 15939
Summary: modification logs view now silently defaults to only
current day's actions
Change sponsored?: ---
Product: Koha
Version: master
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P5 - low
Component: Architecture, internals, and plumbing
Assignee: [email protected]
Reporter: [email protected]
QA Contact: [email protected]
When accessing the modification logs from a link that does not explicitly set
the to and from dates (e.g., from patron or bib details), no results are
displayed unless the object had an action occur during the current day.
This is a side-effect of commit 5dceb851 for bug 13813:
In C4/Log.pm:
- my $iso_datefrom =
C4::Dates->new($datefrom,C4::Context->preference("dateformat"))->output('iso');
- my $iso_dateto =
C4::Dates->new($dateto,C4::Context->preference("dateformat"))->output('iso');
+ my $iso_datefrom = output_pref({ dt => dt_from_string( $datefrom ),
dateformat => 'iso', dateonly => 1 });
+ my $iso_dateto = output_pref({ dt => dt_from_string( $dateto ), dateformat
=> 'iso', dateonly => 1 });
In particular, C4::Dates->new($foo... returns undefined if $foo is undefined,
whereas output_pref({ dt => dt_from_string( $foo... returns the current date.
This amounts to a regression.
--
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/