You are not logged in.

Announcement

 Téléchargez la dernière version stable de GLPI      -     Et vous, que pouvez vous faire pour le projet GLPI ? :  Contribuer
 Download last stable version of GLPI                      -     What can you do for GLPI ? :  Contribute

#1 2008-09-01 23:13:06

squidy
Member
Registered: 2008-09-01
Posts: 47

Order of Real Name and First Name

Hi there,
Here in Brazil we usually use the name format as Name before Surename.. and I want to set GLPI to work that.

Changing inc/display.function.php I got do appear correctly in Command Center... but I want to get it in all sliding menu of users that contains name and surname as well.

May you help me about that? I really need it...

Thanks...

ps.: my english is not good... sorry.

Offline

#2 2008-09-25 23:34:21

orion2087
Member
Registered: 2008-09-24
Posts: 18

Re: Order of Real Name and First Name

I'd like to find out about this as well. I've gone through and modified a lot of .php's to show it the other way around, but its still not 100%.

Offline

#3 2009-02-02 03:58:25

naoliv
Member
From: Brazil
Registered: 2009-02-02
Posts: 5
Website

Re: Order of Real Name and First Name

Hi!

If numbers count on this, include me on this issue too. It's really annoying in trying to find a name when it's not displayed as we are used to.

Are there any news on this issue, please?
How can we request more "formally" this enhancement?

Offline

#4 2009-02-02 04:09:34

MoYo
GLPI - Lead
From: Poitiers
Registered: 2004-09-13
Posts: 14,513
Website

Re: Order of Real Name and First Name

To modify name format you only need to change the formatUserName function in db.function.php file.


MoYo - Julien Dombre - Association INDEPNET
Contribute to GLPI :    Support     Contribute     References     Freshmeat

Offline

#5 2009-02-02 04:21:39

naoliv
Member
From: Brazil
Registered: 2009-02-02
Posts: 5
Website

Re: Order of Real Name and First Name

Yes, it's possible to directly modify the source, but not every user knows PHP to make such modification, for example. Also, this change will get lost on upgrades (since db.function.php will be overwritten).
An option to select how the name is displayed would be the best option, if possible.

Thank you!

Offline

#6 2009-02-02 04:37:21

naoliv
Member
From: Brazil
Registered: 2009-02-02
Posts: 5
Website

Re: Order of Real Name and First Name

Just one more thing: if formatUserName is modified to display name + surname (instead surname + name), the combo boxes are still sorted by surname, instead name (that is also bad to find names).
So it seems that it's necessary to have deeper modifications on the source code.

Offline

#7 2009-02-02 04:41:30

MoYo
GLPI - Lead
From: Poitiers
Registered: 2004-09-13
Posts: 14,513
Website

Re: Order of Real Name and First Name

do you have cache enable ?
I think you see a cache page because formatUserName is used in dropdown.

I create a ticket for your request. We will discuss about it.


MoYo - Julien Dombre - Association INDEPNET
Contribute to GLPI :    Support     Contribute     References     Freshmeat

Offline

#8 2009-02-02 04:45:09

naoliv
Member
From: Brazil
Registered: 2009-02-02
Posts: 5
Website

Re: Order of Real Name and First Name

Disabled the cache but I still get the dropdowns sorted by surname.

Offline

#9 2009-02-02 04:53:18

naoliv
Member
From: Brazil
Registered: 2009-02-02
Posts: 5
Website

Re: Order of Real Name and First Name

OK. I have updated from 0.71.2 to 0.71.5 and they are properly sorted now.
Thanks!

Offline

#10 2009-02-02 04:54:01

MoYo
GLPI - Lead
From: Poitiers
Registered: 2004-09-13
Posts: 14,513
Website

Re: Order of Real Name and First Name

Sorry you need also to modify dropdownUsersSelect  in dropdown.function.php.


MoYo - Julien Dombre - Association INDEPNET
Contribute to GLPI :    Support     Contribute     References     Freshmeat

Offline

#11 2009-02-02 17:59:51

Plight
Member
Registered: 2008-12-08
Posts: 188

Re: Order of Real Name and First Name

I know its just a band aid, but I just imported the my users through ldap and switched around the First Name( givenname) and Surname (sn) before the import.  This made everything work jsut fine in regards to name order without any source code modifications. 

The First Name and Surname values are of course switched in the sorting columns, but this is a minor issue and end users would never see that.


GLPI .72
Current plugins - massocsimport

CentOS 5.3

Offline

Board footer

Powered by FluxBB