[open-ils-commits] r9288 - trunk/Open-ILS/xul/staff_client/server/patron

svn at svn.open-ils.org svn at svn.open-ils.org
Wed Apr 9 22:54:47 EDT 2008


Author: phasefx
Date: 2008-04-09 22:17:26 -0400 (Wed, 09 Apr 2008)
New Revision: 9288

Modified:
   trunk/Open-ILS/xul/staff_client/server/patron/user_edit.js
Log:
protect against empty list items

Modified: trunk/Open-ILS/xul/staff_client/server/patron/user_edit.js
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/patron/user_edit.js	2008-04-10 02:15:30 UTC (rev 9287)
+++ trunk/Open-ILS/xul/staff_client/server/patron/user_edit.js	2008-04-10 02:17:26 UTC (rev 9288)
@@ -286,6 +286,8 @@
 
 function trim_ou_tree (tree, list) {
 	for (var i in tree) {
+		if (!tree[i]) continue;
+
 		var type = grep( function(x) {return x.id() == tree[i].ou_type()}, ou_type_list )[0];
 		if ( type && type.can_have_users() == 't' )
 			list.push(tree[i]);



More information about the open-ils-commits mailing list