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