[open-ils-commits] [GIT] Evergreen ILS branch master updated. 01b315ca9c70c00c64622bfa0b00f31fc8984675

Evergreen Git git at git.evergreen-ils.org
Fri Nov 22 15:10:38 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, master has been updated
       via  01b315ca9c70c00c64622bfa0b00f31fc8984675 (commit)
      from  1ac376b03471bfb06ca74aa248233d0fb83a8ea5 (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 01b315ca9c70c00c64622bfa0b00f31fc8984675
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