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

2008-01-29 Thread Paulo Filipe Andrade
Thanks for the patch! You might consider using the display name when sending an email too! lib/RT/Action/SendEmail.pm line 640 - my $friendly_name = $self->TransactionObj->CreatorObj->RealName + my $friendly_name = $self->TransactionObj->CreatorObj->DisplayName On Jan 25, 2008, at 8:21 PM, Dirk

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

2008-01-25 Thread Dirk Pape
Hello, --Am 25. Januar 2008 18:22:46 + schrieb Paulo Filipe Andrade <[EMAIL PROTECTED]>: > 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.. >

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

2008-01-25 Thread Paulo Filipe Andrade
Hi, I'm trying to get the "Owner" drop downs in RT to display a name built by the following method: ## This is in User_Local.pm no warnings qw(redefine); sub DisplayName { my $self = shift; my $displayName = $self->Name; if($self->RealName =~ /\b(\w+)\b.*\b(\w+)\b/){ $