[open-ils-commits] r9280 -
branches/rel_1_2/Open-ILS/xul/staff_client/server/patron
svn at svn.open-ils.org
svn at svn.open-ils.org
Wed Apr 9 12:47:27 EDT 2008
Author: miker
Date: 2008-04-09 12:10:07 -0400 (Wed, 09 Apr 2008)
New Revision: 9280
Modified:
branches/rel_1_2/Open-ILS/xul/staff_client/server/patron/user_edit.js
Log:
protect against empty list items
Modified: branches/rel_1_2/Open-ILS/xul/staff_client/server/patron/user_edit.js
===================================================================
--- branches/rel_1_2/Open-ILS/xul/staff_client/server/patron/user_edit.js 2008-04-09 02:33:09 UTC (rev 9279)
+++ branches/rel_1_2/Open-ILS/xul/staff_client/server/patron/user_edit.js 2008-04-09 16:10:07 UTC (rev 9280)
@@ -286,6 +286,8 @@
function trim_ou_tree (tree, list) {
for (var i in tree) {
+ if (!tree) 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