[open-ils-commits] r10366 -
branches/rel_1_2_3/Open-ILS/src/javascript/backend/circ
svn at svn.open-ils.org
svn at svn.open-ils.org
Thu Aug 14 14:26:27 EDT 2008
Author: erickson
Date: 2008-08-14 14:26:24 -0400 (Thu, 14 Aug 2008)
New Revision: 10366
Modified:
branches/rel_1_2_3/Open-ILS/src/javascript/backend/circ/circ_lib.js
Log:
protecting against non-existent group in descendent check
Modified: branches/rel_1_2_3/Open-ILS/src/javascript/backend/circ/circ_lib.js
===================================================================
--- branches/rel_1_2_3/Open-ILS/src/javascript/backend/circ/circ_lib.js 2008-08-14 18:25:41 UTC (rev 10365)
+++ branches/rel_1_2_3/Open-ILS/src/javascript/backend/circ/circ_lib.js 2008-08-14 18:26:24 UTC (rev 10366)
@@ -161,6 +161,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