I need to show in userdropdown list login, first_name, last_name

Moderator: crythias

Locked
racagalro
Znuny newbie
Posts: 16
Joined: 27 May 2013, 15:58
Znuny Version: 3.3.1

I need to show in userdropdown list login, first_name, last_name

Post by racagalro »

I need some help.

I would like to modify dropdown User list in AgentTicketPhone module in order to show login, first_name and last_name.
I found in AgentTicketPhone.pm that it uses a function called UserList to generate it:

my %AllGroupsMembers = $Self->{UserObject}->UserList(
Type => 'Long',
Valid => 1,
);

I found this function described in API reference (and in User.pm module). I saw parameter Type can be set to "Short" or "Long".

I tried "Short" but it only gives users "login". Long gives only first and last name.

¿How can I modify UserList function in order to list the three fields (login, first and last names)?

I have made some test modifying $SelectStr variable inside UserList function for Long type but nothing changed.

¿Could you please give me some help?

Thanks
racagalro
Znuny newbie
Posts: 16
Joined: 27 May 2013, 15:58
Znuny Version: 3.3.1

Re: I need to show in userdropdown list login, first_name, last_name

Post by racagalro »

I found the anwer.

Sysconfig parameter "FirstnameLastnameOrder" in Framework -> Frontend::Agent must be set to the desired value.

Sorry.
Best regards
Locked