[open-ils-commits] [GIT] Evergreen ILS branch rel_2_11 updated. 438ed0ebb669feb6d88cc88962ecbfe10c78f0ce

Evergreen Git git at git.evergreen-ils.org
Fri Oct 28 15:09:49 EDT 2016


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  438ed0ebb669feb6d88cc88962ecbfe10c78f0ce (commit)
      from  5924d3a93aaf2ea85d996fb37c9638ec42bc93f8 (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 438ed0ebb669feb6d88cc88962ecbfe10c78f0ce
Author: Dan Scott <dscott at laurentian.ca>
Date:   Tue Sep 6 13:53:02 2016 -0400

    LP#1620750 Prevent log warning for uninit var in checkin_retarget()
    
    If the retarget_mode variable is not initialized, then a warning is generated
    in the logs every time an item is checked in. Avoid the warning by
    short-circuiting before testing the value in the regex.
    
    Signed-off-by: Dan Scott <dscott at laurentian.ca>
    Signed-off-by: Chris Sharp <csharp at georgialibraries.org>
    Signed-off-by: Galen Charlton <gmc at esilibrary.com>

diff --git a/Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Circulate.pm b/Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Circulate.pm
index d142df6..8daab0c 100644
--- a/Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Circulate.pm
+++ b/Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Circulate.pm
@@ -2229,7 +2229,7 @@ sub check_transit_checkin_interval {
 # Retarget local holds at checkin
 sub checkin_retarget {
     my $self = shift;
-    return unless $self->retarget_mode =~ m/retarget/; # Retargeting?
+    return unless $self->retarget_mode and $self->retarget_mode =~ m/retarget/; # Retargeting?
     return unless $self->is_checkin; # Renewals need not be checked
     return if $self->capture eq 'nocapture'; # Not capturing holds anyway? Move on.
     return if $self->is_precat; # No holds for precats

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

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


hooks/post-receive
-- 
Evergreen ILS


More information about the open-ils-commits mailing list