[rt-users] Accessing User_Local.pm user defined methods from Mason

Dirk Pape pape-rt at inf.fu-berlin.de
Fri Jan 25 15:21:44 EST 2008


Hello,

--Am 25. Januar 2008 18:22:46 +0000 schrieb Paulo Filipe Andrade 
<pauloandrade at ist.utl.pt>:

> I have tried adding DisplayName => { 'read' => 1 }, and it works..
> kind of. The first user's name in the drop down never gets displayed.
> Somehow the first call to the method never goes through..
> Any suggestions are welcome!

I am quite sure that the first user in the dropdown is "Nobody" which has 
neither Nickname nor Realname. You need a fallback (e.g. to User->Name if 
both are empty).

We have already a patch for the same thing (and more): We did not like that 
in some cases the Emailaddress was displayed when showing a user in other 
cases the Username (with or without Real Name).

So we patched most occurrences where users are displayed with a call to 
DisplayName or (in some cases) FriendlyEmailAddress, methods which we 
implemented in User_Overlay.pm.

I attach a link to our patch here for reference. You may find that it is 
worth to modify other places of User display as well. (The patch is not yet 
ready because I am not sure whether we missed some places, where a User 
will be displayed - so we did not yet modify Admin pages).

<http://page.mi.fu-berlin.de/pape/rt3/patches/rt/unified_user_display.patch>

Regards,
Dirk.

-- 
Dr. Dirk Pape (eAS - Projektleitung Campus Management)
Freie Universitaet Berlin
Grunewaldstr. 34a, 12165 Berlin
Tel. +49 (30) 838 75143, Fax. +49 (30) 838 54654




More information about the rt-users mailing list