[rt-users] Change username format of autocomplete list

Peter Reuterås reuteras at gmail.com
Mon Oct 24 09:55:38 EDT 2011


> share/html/Elements/ShowUser is what looks at the system setting or user
> preference and dispatches to the right component for display
> (ShowUserVerbose vs. ShowUserConcise out of the box).
>
> You'll need to add a share/html/Elements/ShowUserSuperverbose (note casing
> since the preference is lower-cased an then the first letter upper-cased)
> and then either Set($UsernameFormat, 'superverbose'); globally and/or write
> some Perl in your config to add superverbose to the user preference options.
>  Something like this might do the trick:
>
> push @{$RT::Config::META{UsernameFormat}->{WidgetArguments}{Values}},
> 'superverbose';
> $RT::Config::META{UsernameFormat}->{WidgetArguments}{ValuesLabel}{superverbose}
> = 'Name, email address, and phone number';
>
> That's untested, so give it a shot.

Thanks for quick reply! Will look into it as soon as I'm back from a conference.

/Peter



More information about the rt-users mailing list