Ask not what osTicket community can do for you - ask what you can do for osTicket community

Go Back   osTicket Forums > Project Tools > osTicket Bug Tracker > Bug

Issue Type Bug   Project osTicket Bug Tracker
Template Variables Replacement Bug
Category Unknown
Affected Version 1.6 Stable
Priority Unknown
Status Unconfirmed
Fixed Version (none)
Submitted 08-15-2011
Assigned Users (none) Tags (none)

issueid=264 08-15-2011 01:53 PM
Junior Member
Template Variables Replacement Bug

In class.ticket, there are three instances in which the %message variable is replaced AFTER the replaceTemplateVars() function has already executed. In order for template variables to be properly replaced, the %message variable would have to be replaced BEFORE replaceTemplateVars() is executed, otherwise none of the template placeholders would be visible to the replaceTemplateVars() function.

Normally, this does not cause a problem, since when you reply to a ticket, the template variables are replaced using an AJAX function, before the ticket is even created. However, when a staff member creates a new ticket, the AJAX function will not perform the replacement, since the ticket does not yet exist and therefore there is nothing to replace.

To correct this problem, you simply have to move the %message variable replacement line up by a few lines, so it executes before the replaceTemplateVars() function executes. There is one instance of this in the create_by_staff() method and two instances in the create() method.
Reply


Issue Tools
Subscribe to this issue

All times are GMT -4. The time now is 02:59 PM.