Help Desk Software & Beyond
May 17, 2012, 04:36:27 AM *
Welcome, Guest. Please login or register.
To post messages you need to register. We apologize for inconvenience, but this is to prevent spam.
Registration is instant (no email verification) and we do not ask for any personal information.

Login with username, password and session length
News: Welcome to Help Desk Software forum!
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: [PROB] Custom Subject Line  (Read 725 times)
arvin
Sr. Member
****

Karma: 10
Posts: 400


Yeah thats right !


View Profile
« on: October 14, 2010, 11:29:43 AM »

Hello,

... I'm trying to edit the following line in TTXticket.pm to display 2 additional custom fields .... however I keep on getting "HASH" msgs

Code:
$subject .= " for ".$ticket->{"c9"}

... or

Do i have to write 2 additional line in order for it work ...

Example

Code:
$subject .= " for ".$ticket->{"c9"}
Code:
$subject .= " for ".$ticket->{"c7"}
Code:
$subject .= " for ".$ticket->{"c8"}

thank you in advance
« Last Edit: October 14, 2010, 12:15:37 PM by Sparky » Logged
Sparky
Moderator
Hero Member
*****

Karma: 83
Posts: 2,228


stop pushing all those buttons


View Profile
« Reply #1 on: October 14, 2010, 12:17:45 PM »

I would say it's an issue with the double quotation marks.

Try single quote marks around the 'c9', or try leaving them off entirely...

...but I could be wrong.

If you don't know Perl very well, then it's a bit of trial & error.
Logged

Did you update the paths in ttxcfg.cgi after moving TTX to your new location?   Undecided
To those seeking help.... please report back when you figure it out.  Cheesy
arvin
Sr. Member
****

Karma: 10
Posts: 400


Yeah thats right !


View Profile
« Reply #2 on: October 14, 2010, 02:46:18 PM »

Thanks for the tip Sparky ....

issue has been resolved by the following code.....

Code:
  $subject .= " for ".$ticket->{"c9"}.$ticket->{"c7"}.' '.$ticket->{"c8"};


Take care
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1 RC3 | SMF © 2001-2006, Lewis Media Valid XHTML 1.0! Valid CSS!
Page created in 0.02 seconds with 18 queries.