[open-ils-commits] r10367 - trunk/Open-ILS/src/javascript/backend/circ

svn at svn.open-ils.org svn at svn.open-ils.org
Thu Aug 14 14:26:34 EDT 2008


Author: erickson
Date: 2008-08-14 14:26:31 -0400 (Thu, 14 Aug 2008)
New Revision: 10367

Modified:
   trunk/Open-ILS/src/javascript/backend/circ/circ_lib.js
Log:
protecting against non-existent group in descendent check

Modified: trunk/Open-ILS/src/javascript/backend/circ/circ_lib.js
===================================================================
--- trunk/Open-ILS/src/javascript/backend/circ/circ_lib.js	2008-08-14 18:26:24 UTC (rev 10366)
+++ trunk/Open-ILS/src/javascript/backend/circ/circ_lib.js	2008-08-14 18:26:31 UTC (rev 10367)
@@ -162,6 +162,7 @@
   * @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]) ) {



More information about the open-ils-commits mailing list