From: Jason Stephenson Date: Tue, 9 Aug 2011 19:40:41 +0000 (-0400) Subject: Branchify the first patch from James Fournie on LP bug #791941. X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=9fb3d2035f193dd4e0bdcec9f74cdea8a2d7038c;p=evergreen%2Fpines.git Branchify the first patch from James Fournie on LP bug #791941. Signed-off-by: Jason Stephenson Signed-off-by: Mike Rylander --- diff --git a/Open-ILS/web/js/dojo/openils/widget/AutoFieldWidget.js b/Open-ILS/web/js/dojo/openils/widget/AutoFieldWidget.js index 858ae7010f..c33b5e1eda 100644 --- a/Open-ILS/web/js/dojo/openils/widget/AutoFieldWidget.js +++ b/Open-ILS/web/js/dojo/openils/widget/AutoFieldWidget.js @@ -593,8 +593,8 @@ if(!dojo._hasResource['openils.widget.AutoFieldWidget']) { dojo.require('fieldmapper.OrgUtils'); dojo.require('openils.widget.FilteringTreeSelect'); this.widget = new openils.widget.FilteringTreeSelect(this.dijitArgs, this.parentNode); - this.widget.searchAttr = 'shortname'; - this.widget.labelAttr = 'shortname'; + this.widget.searchAttr = this.searchAttr || 'shortname'; + this.widget.labelAttr = this.searchAttr || 'shortname'; this.widget.parentField = 'parent_ou'; var user = new openils.User();