$TicketNr not retrieving correctly the Ticket number

Moderator: crythias

Post Reply
Fredzz
Znuny newbie
Posts: 3
Joined: 29 Apr 2010, 15:03
Znuny Version: -

$TicketNr not retrieving correctly the Ticket number

Post by Fredzz »

Hi Guys,

I'm trying to give a message to the user with his Ticket Nr when he finishes creating a ticket.

On the wiki page http://wiki.otrs.org/index.php?title=Cr ... HP_via_RPC in the end it mentions:

Code: Select all

echo "<p>You have just created ticket id $TicketID with article id "
."$ArticleID. The ticket number is $TicketNr.</p>\n";
However when i use $Ticket Nr i get "T2.0100623102047E+14 " instead of "201006231020474"

Can anyone help or explain why this happens?

Thanks in advance.
Mike_B
Moderator
Posts: 266
Joined: 12 Jan 2010, 18:16
Znuny Version: CVS HEAD

Re: $TicketNr displaying in scientific notation in PHP

Post by Mike_B »

Hi Fredzz,

This is a PHP issue: http://jetlogs.org/2008/02/05/php-probl ... -notation/
I'm more familiar with Perl than with PHP :D

I fixed the example on the wiki now, it should work. Please let me know how it works for you.

http://wiki.otrs.org/index.php?title=Cr ... HP_via_RPC

--
Mike
huntingbears.nl - @michielbeijen on Twitter
Post Reply