Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Request Tracker: Users

Comma in the RealName field.

 

 

Request Tracker users RSS feed   Index | Next | Previous | View Threaded


zhelonkin.roman at gmail

Nov 4, 2009, 7:04 AM

Post #1 of 2 (430 views)
Permalink
Comma in the RealName field.

Hi,

I am trying to customise Sender field of the message header by using
templates. I am using the following object to get the Real Name value:

{$Transaction->CreatorObj->RealName}

The value contains comma, like this:

Surname, FirstName

But in fact I only get the first part of this value. The surname. If I
remove the comma from the Real Name field (on user config page) the
value is retuned back correctly.


Could somebody suggest the best way to get the value of RealName which
contains comma.


Any advice would be much appreciated.


Best regards, Roman.
_______________________________________________
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: sales [at] bestpractical


Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
Buy a copy at http://rtbook.bestpractical.com


zhelonkin.roman at gmail

Nov 4, 2009, 4:27 PM

Post #2 of 2 (396 views)
Permalink
Re: Comma in the RealName field. [In reply to]

Fixed,

by taking the $Transaction->CreatorObj->RealName in to double quotes like this:

{"\"" . $Transaction->CreatorObj->RealName . "\""}


On Wed, Nov 4, 2009 at 4:04 PM, Roman Zhelonkin
<zhelonkin.roman [at] gmail> wrote:
> Hi,
>
> I am trying to customise Sender field of the message header by using
> templates. I am using the following object to get the Real Name value:
>
> {$Transaction->CreatorObj->RealName}
>
> The value contains comma, like this:
>
> Surname, FirstName
>
> But in fact I only get the first part of this value. The surname. If I
> remove the comma from the Real Name field (on user config page) the
> value is retuned back correctly.
>
>
> Could somebody suggest the best way to get the value of RealName which
> contains comma.
>
>
> Any advice would be much appreciated.
>
>
> Best regards, Roman.
>



--

-----------------------------
Best regards, Roman
_______________________________________________
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: sales [at] bestpractical


Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
Buy a copy at http://rtbook.bestpractical.com

Request Tracker users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.