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)
committerBrendan Gallagher <brendan@bywatersolutions.com>
Wed, 2 Mar 2016 00:53:14 +0000 (00:53 +0000)
commitca36ee3794c7a33976405fe8231df28ecaee3289
tree5c9a153412f3325e7cac43079b8bf38fbc3b87b6
parent361c1e987c2e78366536ca00001c3b43f700e1ff
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
C4/Log.pm
t/db_dependent/Log.t