From 7dc149c88e2178ce659490a542018e39c7ded3a8 Mon Sep 17 00:00:00 2001 From: erickson Date: Tue, 24 Mar 2009 21:27:18 +0000 Subject: [PATCH] unless otherwise specified, use the workstation ou as the value for the org unit selector git-svn-id: svn://svn.open-ils.org/ILS/trunk@12661 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/web/js/dojo/openils/widget/AutoFieldWidget.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Open-ILS/web/js/dojo/openils/widget/AutoFieldWidget.js b/Open-ILS/web/js/dojo/openils/widget/AutoFieldWidget.js index df2ad323cf..969781c613 100644 --- a/Open-ILS/web/js/dojo/openils/widget/AutoFieldWidget.js +++ b/Open-ILS/web/js/dojo/openils/widget/AutoFieldWidget.js @@ -251,11 +251,13 @@ if(!dojo._hasResource['openils.widget.AutoFieldWidget']) { this.widget.searchAttr = 'shortname'; this.widget.labelAttr = 'shortname'; this.widget.parentField = 'parent_ou'; + var user = new openils.User(); + if(this.widgetValue == null) + this.widgetValue = user.user.ws_ou(); // if we have a limit perm, find the relevent orgs (async) if(this.orgLimitPerms && this.orgLimitPerms.length > 0) { this.async = true; - var user = new openils.User(); var self = this; user.getPermOrgList(this.orgLimitPerms, function(orgList) { -- 2.11.0