From: erickson Date: Thu, 14 Aug 2008 18:26:31 +0000 (+0000) Subject: protecting against non-existent group in descendent check X-Git-Url: https://git.evergreen-ils.org/?p=Evergreen.git;a=commitdiff_plain;h=b8a909a7b496667a9600e8adde1c59f919cc9918 protecting against non-existent group in descendent check git-svn-id: svn://svn.open-ils.org/ILS/trunk@10367 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 c708dbf68c..64923ed67e 100644 --- a/Open-ILS/src/javascript/backend/circ/circ_lib.js +++ b/Open-ILS/src/javascript/backend/circ/circ_lib.js @@ -162,6 +162,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]) ) {