From a484aa3cdac7866d9611b2af0eaea5405f6a01ad Mon Sep 17 00:00:00 2001 From: phasefx Date: Fri, 10 Mar 2006 19:15:34 +0000 Subject: [PATCH] delay the gathering of my_orgs till after the session au is retrieved git-svn-id: svn://svn.open-ils.org/ILS/trunk@3330 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- .../chrome/content/OpenILS/data.js | 22 +++++++++++-------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/Open-ILS/xul/staff_client/chrome/content/OpenILS/data.js b/Open-ILS/xul/staff_client/chrome/content/OpenILS/data.js index 498725d9ac..7e8d6dd649 100644 --- a/Open-ILS/xul/staff_client/chrome/content/OpenILS/data.js +++ b/Open-ILS/xul/staff_client/chrome/content/OpenILS/data.js @@ -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 () { -- 2.43.2