From 069dc3e92e9ef89aade06ab592dc9fc4b219a547 Mon Sep 17 00:00:00 2001 From: Jason Stephenson Date: Tue, 9 Aug 2011 15:49:21 -0400 Subject: [PATCH] Branchify second patch from James Fournie on LP bug #791941. Signed-off-by: Jason Stephenson Signed-off-by: Mike Rylander --- Open-ILS/web/js/ui/default/actor/user/register.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Open-ILS/web/js/ui/default/actor/user/register.js b/Open-ILS/web/js/ui/default/actor/user/register.js index 3832c97388..56126b001e 100644 --- a/Open-ILS/web/js/ui/default/actor/user/register.js +++ b/Open-ILS/web/js/ui/default/actor/user/register.js @@ -699,6 +699,11 @@ function fleshFMRow(row, fmcls, args) { wargs.forceSync = false; } + if(fmcls == 'au' && fmfield == 'home_ou'){ + wargs.labelAttr = 'name'; + wargs.searchAttr = 'name'; + } + var widget = new openils.widget.AutoFieldWidget(wargs); widget.build( function(w, ww) { -- 2.11.0