[open-ils-commits] [GIT] Evergreen ILS branch rel_3_1 updated. 8f87930b37490726485172ad2526aa4cfcf7291c

Evergreen Git git at git.evergreen-ils.org
Mon Mar 4 11:25:43 EST 2019


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_3_1 has been updated
       via  8f87930b37490726485172ad2526aa4cfcf7291c (commit)
      from  7433dcac8c2754299fc4994f787e2633962c8583 (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 8f87930b37490726485172ad2526aa4cfcf7291c
Author: Josh Stompro <stompro at stompro.org>
Date:   Mon Mar 4 08:57:02 2019 -0600

    LP#1667497 - Define $params{depth} to avoid uninitialized warning.
    
    $depth is set to 0 if $params{depth} is unset, but then $params{depth}
    gets used later on, which causes an uninitialized value warning.
    
    So set $params{depth} to whatever $depth was set to.
    
    Signed-off-by: Josh Stompro <stompro at stompro.org>
    Signed-off-by: Jason Stephenson <jason at sigio.com>

diff --git a/Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Holds.pm b/Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Holds.pm
index b15de7cf58..8efb0086ab 100644
--- a/Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Holds.pm
+++ b/Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Holds.pm
@@ -2381,6 +2381,7 @@ sub check_title_hold {
 
     my %params       = %$params;
     my $depth        = $params{depth}        || 0;
+    $params{depth} = $depth;   #define $params{depth} if unset, since it gets used later
     my $selection_ou = $params{selection_ou} || $params{pickup_lib};
     my $oargs        = $params{oargs}        || {};
 

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

Summary of changes:
 Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Holds.pm | 1 +
 1 file changed, 1 insertion(+)


hooks/post-receive
-- 
Evergreen ILS


More information about the open-ils-commits mailing list