Bug 15939: Action logs - Do not default dates to today
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Tue, 1 Mar 2016 10:52:39 +0000 (10:52 +0000)
committerJulian Maurice <julian.maurice@biblibre.com>
Mon, 7 Mar 2016 10:35:14 +0000 (11:35 +0100)
commitd20117fddee5ee9c492dddd2e58db45500a0e146
tree1f1344f153529131f020a85a602fe1aa7c5f64f8
parent54d3ee5758b2fc646aa4c403afa8754772cf9c2e
Bug 15939: Action logs - Do not default dates to today

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.

Test plan:
- View the modification logs of a record which has already been modified
(/tools/viewlog.pl?do_it=1&modules=CATALOGUING&action=MODIFY&object=XXX)
=> Without this patch, you won't see any logs (unless you have modified
the record today)
=> With this patch, the behavior is the same as prior bug 13813 (you can
check in 3.20.x), you will see all logs

Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Brendan Gallagher brendan@bywatersolutions.com
(cherry picked from commit ca36ee3794c7a33976405fe8231df28ecaee3289)
Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>
C4/Log.pm
t/db_dependent/Log.t