delay the gathering of my_orgs till after the session au is retrieved
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 10 Mar 2006 19:15:34 +0000 (19:15 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 10 Mar 2006 19:15:34 +0000 (19:15 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@3330 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/xul/staff_client/chrome/content/OpenILS/data.js

index 498725d..7e8d6dd 100644 (file)
@@ -220,18 +220,22 @@ OpenILS.data.prototype = {
                        }
                );
 
+               // Do this after we get the user object
                this.chain.push(
-                       gen_fm_retrieval_func('my_aou', 
-                               [ 
-                                       api.FM_AOU_RETRIEVE_RELATED_VIA_SESSION.app,
-                                       api.FM_AOU_RETRIEVE_RELATED_VIA_SESSION.method,
-                                       [ obj.session, obj.list.au[0].ws_ou() ], /* use ws_ou and not home_ou */
-                                       true
-                               ]
-                       )
+
+                       function() {
+
+                               gen_fm_retrieval_func('my_aou', 
+                                       [ 
+                                               api.FM_AOU_RETRIEVE_RELATED_VIA_SESSION.app,
+                                               api.FM_AOU_RETRIEVE_RELATED_VIA_SESSION.method,
+                                               [ obj.session, obj.list.au[0].ws_ou() ], /* use ws_ou and not home_ou */
+                                               true
+                                       ]
+                               )();
+                       }
                );
 
-               // Do this after we get the user object
                this.chain.push(
 
                        function () {