The Great For-In Refactoring of ought-nine broke dojo trees built from opensrf object...
authormiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 25 May 2010 16:51:16 +0000 (16:51 +0000)
committermiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 25 May 2010 16:51:16 +0000 (16:51 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@16495 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/web/js/dojo/fieldmapper/dojoData.js

index 963cab7..472b5ae 100644 (file)
@@ -80,7 +80,7 @@ if(!dojo._hasResource['fieldmapper.dojoData']){
                                item_data.push( obj );
                        }
 
-                       for (var j = 0; _find_root && j < _find_root.length; j++) {
+                       for (var j in _find_root) {
                                _find_root[j]['_top'] = 'true';
                                if (!_find_root[j][params.parent])
                                        _find_root[j]['_trueRoot'] = 'true';