[open-ils-commits] ***SPAM*** [GIT] Evergreen ILS branch rel_2_5 updated. 1aae891b4c298fc341a8314ca3a70936491969df

Evergreen Git git at git.evergreen-ils.org
Tue May 27 16:53:49 EDT 2014


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Evergreen ILS".

The branch, rel_2_5 has been updated
       via  1aae891b4c298fc341a8314ca3a70936491969df (commit)
      from  dd50cf4828aa743ea71648f5b3826a9b255e59a2 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 1aae891b4c298fc341a8314ca3a70936491969df
Author: Bill Erickson <berick at esilibrary.com>
Date:   Thu May 22 14:41:17 2014 -0400

    LP#1322303 cleanse backdate for checkin overdue voiding
    
    Passing raw backdates, particularly from offline transactions, which
    have a space between the date and time, to
    DateTime::Format::ISO8601->parse_datetime results in "Invalid date
    format:" errors.  Pass the date through the cleanse routine first.
    
    Signed-off-by: Bill Erickson <berick at esilibrary.com>
    Signed-off-by: Ben Shum <bshum at biblio.org>

diff --git a/Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/CircCommon.pm b/Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/CircCommon.pm
index 2901ec5..1315a8c 100644
--- a/Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/CircCommon.pm
+++ b/Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/CircCommon.pm
@@ -44,7 +44,7 @@ sub void_overdues {
         $duration =~ s/(\d{2}):(\d{2}):(\d{2})/$1 h $2 m $3 s/o;
         my $interval = OpenSRF::Utils->interval_to_seconds($duration);
 
-        my $date = DateTime::Format::ISO8601->parse_datetime($backdate);
+        my $date = DateTime::Format::ISO8601->parse_datetime(cleanse_ISO8601($backdate));
         my $due_date = DateTime::Format::ISO8601->parse_datetime(cleanse_ISO8601($circ->due_date))->epoch;
         my $grace_period = extend_grace_period( $class, $circ->circ_lib, $circ->due_date, OpenSRF::Utils->interval_to_seconds($circ->grace_period), $e);
         if($date->epoch <= $due_date + $grace_period) {

-----------------------------------------------------------------------

Summary of changes:
 .../lib/OpenILS/Application/Circ/CircCommon.pm     |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)


hooks/post-receive
-- 
Evergreen ILS


More information about the open-ils-commits mailing list