From fb7dc385eefbb0a71d27b209231916e1926ba544 Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Mon, 5 Jun 2017 10:46:45 -0400 Subject: [PATCH] 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' --- Koha/Hold.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Koha/Hold.pm b/Koha/Hold.pm index d708054..8b49064 100644 --- a/Koha/Hold.pm +++ b/Koha/Hold.pm @@ -60,7 +60,7 @@ sub suspend_hold { } $self->suspend(1); - $self->suspend_until( $dt ); + $self->suspend_until( $dt->ymd ); $self->store(); -- 2.10.2