nationisapro97 / trinityadmin

Automatically exported from code.google.com/p/trinityadmin
0 stars 0 forks source link

Ticket with IDs containing "00" aren't displayed #24

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Version of your game client (3.1.3, 3.2.2a, etc): 3.3.2
Language of your game client (enUS, deDE,etc): enUS
Version and revision of your TrinityAdmin: r14
Language selected in trinityAdmin: English
Trinity or MaNGOS? Trinity
Version of TrinityCore/MaNGOS (if known): 7408
Your Operating System and Version (Windows, Linux, etc): Ubuntu 9.10

What was the expected output?
See the selected ticket.

What do you see instead?
"Invalid ticket ID"

What steps will reproduce the problem?
1. Try to read a ticket with 00 in its ID (ticket ID examples: 1009, 5005, 
500)

Please provide any additional information below.
It's because of this:
tNumber=string.gsub(tNumber, "00", "")

FIX:
comment line in Commands_Ticket.lua:
-- tNumber=string.gsub(tNumber, "00", "")

Execute SQL query:

UPDATE trinity_string SET content_default='|cffaaffaaTicket|r:|cffaaccff 
%d.|r ' WHERE entry=2017;

And then .reload trinity_string

Original issue reported on code.google.com by Toni.Shocker on 25 Feb 2010 at 1:37

GoogleCodeExporter commented 8 years ago
Again, thank you for the report, and even more for the fix.
Your fix will be incorporated into r15.

Original comment by gsmith3...@gmail.com on 25 Feb 2010 at 6:23

GoogleCodeExporter commented 8 years ago

Original comment by gsmith3...@gmail.com on 26 Feb 2010 at 8:19