From: erickson Date: Tue, 24 Mar 2009 21:27:18 +0000 (+0000) Subject: unless otherwise specified, use the workstation ou as the value for the org unit... X-Git-Tag: sprint4-merge-nov22~10418 X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=7dc149c88e2178ce659490a542018e39c7ded3a8;p=working%2FEvergreen.git 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 --- 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) {