[open-ils-commits] [GIT] Evergreen ILS branch master updated. ddd5d4519b4ea8d9f0f5eb3e1b0790d412c7716f

Evergreen Git git at git.evergreen-ils.org
Tue May 16 10:55:48 EDT 2017


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, master has been updated
       via  ddd5d4519b4ea8d9f0f5eb3e1b0790d412c7716f (commit)
      from  7570423802d7f83841d7a6baf710b539f448294c (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 ddd5d4519b4ea8d9f0f5eb3e1b0790d412c7716f
Author: Bill Erickson <berickxx at gmail.com>
Date:   Tue Mar 14 13:57:12 2017 -0400

    LP#1672824 A/T complete_time set on grouped events
    
    Set the complete_time value on grouped Action/Trigger events when an
    event's state reaches "complete", consisten with non-grouped events.
    
    Signed-off-by: Bill Erickson <berickxx at gmail.com>
    Signed-off-by: Galen Charlton <gmc at equinoxinitiative.org>

diff --git a/Open-ILS/src/perlmods/lib/OpenILS/Application/Trigger/EventGroup.pm b/Open-ILS/src/perlmods/lib/OpenILS/Application/Trigger/EventGroup.pm
index e5968bc..ec1c3e7 100644
--- a/Open-ILS/src/perlmods/lib/OpenILS/Application/Trigger/EventGroup.pm
+++ b/Open-ILS/src/perlmods/lib/OpenILS/Application/Trigger/EventGroup.pm
@@ -256,6 +256,9 @@ sub update_state {
 
         $e->clear_start_time() if ($e->state eq 'pending');
 
+        $e->complete_time('now')
+            if ($e->state eq 'complete' && !$e->complete_time);
+
         if ($fields && ref($fields)) {
             $e->$_($$fields{$_}) for (keys %$fields);
         }

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

Summary of changes:
 .../lib/OpenILS/Application/Trigger/EventGroup.pm  |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)


hooks/post-receive
-- 
Evergreen ILS


More information about the open-ils-commits mailing list