Bug 18382: action_logs entry for module HOLDS, action SUSPEND is spammy
authorKyle M Hall <kyle@bywatersolutions.com>
Mon, 5 Jun 2017 14:46:45 +0000 (10:46 -0400)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 2 Apr 2018 21:07:46 +0000 (18:07 -0300)
commit2deaead2566a62ce7772cd15a5ffbeb6216a539a
tree78baaa22c75e02b83bcaadbf7e0f56fd588761a5
parentd5afc40805cc8ede026fcb52629a183388bd25cd
Bug 18382: action_logs entry for module HOLDS, action SUSPEND is spammy

When a hold is suspended, 'suspend_until' is represented as a DateTime object, complete with locale. All told, this is about 800 lines of text.

Test Plan:
1) Enable the HoldsLog syspref
2) Add a hold on a record/item
3) Suspend the hold with a date to resume
4) Note the massive amount of date in the suspend_until field
5) Apply this patch
6) Suspend another hold with a date to resume
7) Note the log has an acutal date in the suspend_until field

Check the logs using module 'Holds' and Action 'Suspend'

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Koha/Hold.pm