[open-ils-commits] [GIT] Evergreen ILS branch rel_3_2 updated. 3e06b45bd6063d97302b1372ff3e902f8929aaa1

Evergreen Git git at git.evergreen-ils.org
Mon Mar 4 11:25:36 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_2 has been updated
       via  3e06b45bd6063d97302b1372ff3e902f8929aaa1 (commit)
      from  d14d21fbd3cf945fc38856047977253f7d29a4ca (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 3e06b45bd6063d97302b1372ff3e902f8929aaa1
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 dcbe7dda4f..c7a9b9c77c 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