From: erickson Date: Thu, 14 Aug 2008 18:25:41 +0000 (+0000) Subject: protecting against non-existent group in descendent check X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=ef47d13c723b33f2e01368fd7b81388252f101a0;p=Evergreen.git protecting against non-existent group in descendent check git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_1_2@10365 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/src/javascript/backend/circ/circ_lib.js b/Open-ILS/src/javascript/backend/circ/circ_lib.js index 75f8140cfa..b3eea6fd56 100644 --- a/Open-ILS/src/javascript/backend/circ/circ_lib.js +++ b/Open-ILS/src/javascript/backend/circ/circ_lib.js @@ -161,6 +161,7 @@ function isGroupDescendantId( parentName, childId ) { * @param child The node of the child group */ function __isGroupDescendant( parent, child ) { + if(!(parent && child)) return false; if (parent.id == child.id) return true; var node = child; while( (node = groupIDList[node.parent]) ) {