[open-ils-commits] r7469 -
trunk/Open-ILS/xul/staff_client/server/patron
svn at svn.open-ils.org
svn at svn.open-ils.org
Sun Jun 24 21:24:30 EDT 2007
Author: miker
Date: 2007-06-24 21:22:06 -0400 (Sun, 24 Jun 2007)
New Revision: 7469
Modified:
trunk/Open-ILS/xul/staff_client/server/patron/user_edit.js
Log:
bah ... no implicit return from javascript function
Modified: trunk/Open-ILS/xul/staff_client/server/patron/user_edit.js
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/patron/user_edit.js 2007-06-25 01:17:21 UTC (rev 7468)
+++ trunk/Open-ILS/xul/staff_client/server/patron/user_edit.js 2007-06-25 01:22:06 UTC (rev 7469)
@@ -265,14 +265,9 @@
function trim_ou_tree (tree, list) {
for (var i in tree) {
- if (
- grep(
- function(x) {x.id() == tree[i].ou_type()},
- ou_type_list
- )[0].can_have_users()
- ) {
+ var type = grep( function(x) {return x.id() == tree[i].ou_type()}, ou_type_list )[0];
+ if ( type && type.can_have_users() )
list.push(tree[i]);
- }
if (tree[i].children()) trim_ou_tree(tree[i].children(), list);
}
More information about the open-ils-commits
mailing list