Bug fix #1308

Implemented Bug fix #1308 provided by @greezybacon and is working
perfectly. This also fixes an issue with not being able to perform
functions from the main ticket view