[open-ils-commits] [GIT] Evergreen ILS branch rel_2_5 updated. 7db96d3ea576c2f774208c450f3baf9a72e02703

Evergreen Git git at git.evergreen-ils.org
Fri Nov 22 15:10:39 EST 2013


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_5 has been updated
       via  7db96d3ea576c2f774208c450f3baf9a72e02703 (commit)
      from  1fff24ee104c1965003d4eea3123fe9227360562 (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 7db96d3ea576c2f774208c450f3baf9a72e02703
Author: Bill Erickson <berick at esilibrary.com>
Date:   Fri Nov 22 14:55:26 2013 -0500

    LP#1254146 gracefully handle custom trees sans entries
    
    Avoid references to custom tree entries when no tree entries for a
    custom tree exist.  Prevents:
    
    egweb: template error: undef error - Can't call method "org_unit" on an
    undefined value at
    /usr/local/share/perl/5.10.1/OpenILS/WWW/EGCatLoader/Util.pm line 185.\n
    
    Signed-off-by: Bill Erickson <berick at esilibrary.com>
    Signed-off-by: Ben Shum <bshum at biblio.org>

diff --git a/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Util.pm b/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Util.pm
index 142f537..ce009dd 100644
--- a/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Util.pm
+++ b/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Util.pm
@@ -183,7 +183,8 @@ sub init_ro_object_cache {
                     }
                 }
 
-                $cache{aouct_tree}{$ctx->{locale}} = $node_tree->org_unit;
+                $cache{aouct_tree}{$ctx->{locale}} = 
+                    $node_tree->org_unit if $node_tree;
             }
         }
 

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

Summary of changes:
 .../perlmods/lib/OpenILS/WWW/EGCatLoader/Util.pm   |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)


hooks/post-receive
-- 
Evergreen ILS


More information about the open-ils-commits mailing list