fix a fix. typo/thinko
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 10 Apr 2008 02:15:30 +0000 (02:15 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 10 Apr 2008 02:15:30 +0000 (02:15 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_1_2@9287 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/xul/staff_client/server/patron/user_edit.js

index c67d1f8..32a64e4 100644 (file)
@@ -286,7 +286,7 @@ function grep ( code, list ) {
 
 function trim_ou_tree (tree, list) {
        for (var i in tree) {
-               if (!tree) continue;
+               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' )