My bad -- looks like I have a second (older) version installed somehow. Anyway, the file is the same as your version and I added your fix. It worked! Thank you very much!!!!
I was having the same problem and after applied the fix proposed by Mike1101 it is working now.Proposed fix:add$stats = 0;bellow the line 2940 in /osticket/include/class.ticket.php