Branchify first patch from James Fournie on LP bug #791941.
authorJason Stephenson <jstephenson@mvlc.org>
Tue, 9 Aug 2011 19:48:46 +0000 (15:48 -0400)
committerJason Stephenson <jstephenson@mvlc.org>
Tue, 9 Aug 2011 20:23:03 +0000 (16:23 -0400)
Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
Open-ILS/web/js/dojo/openils/widget/AutoFieldWidget.js

index 98b702e..d9fad80 100644 (file)
@@ -557,8 +557,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();