[open-ils-commits] [GIT] Evergreen ILS branch rel_2_11 updated. 26416f73ddc56fca72982caa7b3648ee9403eab7

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, rel_2_11 has been updated
       via  26416f73ddc56fca72982caa7b3648ee9403eab7 (commit)
      from  b87e8c4ca5f73524851022f7d73364cea55d5965 (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 26416f73ddc56fca72982caa7b3648ee9403eab7
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