CustomerUserNameFields in Config.pm

Moderator: crythias

Locked
inasset
Znuny newbie
Posts: 1
Joined: 22 Jul 2011, 17:33
Znuny Version: 3.0.9

CustomerUserNameFields in Config.pm

Post by inasset »

If I change CustomerUserNameFields in .../Kernel/Config.pm nothing happens on CUSTOMERS overview: the field 'NAME' report "firstname lastname" when on Config.pm
I have

Code: Select all

CustomerUserNameFields     => [ 'title', 'lastname', 'firstname' ]
renee
Znuny expert
Posts: 241
Joined: 06 Feb 2009, 11:15
Znuny Version: 3.0.x
Company: Perl-Services.de
Contact:

Re: CustomerUserNameFields in Config.pm

Post by renee »

This has nothing to do with Config, it only a template thing.

From Kernel/Output/HTML/Standard/AdminCustomerUser.dtl:

Code: Select all

                            <td>$QData{"UserFirstname"} $QData{"UserLastname"}</td>
To see the title, you need to substitute this with the following:

Code: Select all

                            <td>$QData{"UserTitle"} $QData{"UserFirstname"} $QData{"UserLastname"}</td>
But for users without a title there is an extra leading whitespace then...

(untested)
Need a Perl/OTRS developer? You can contact me at info@perl-services.de
Locked