Forum

%{ticket.thread.las...
 
Notifications
Clear all

%{ticket.thread.lastmessage} inserts the original message

9 Posts
2 Users
0 Reactions
51 Views
Posts: 19
Topic starter
(@code54)
Member
Joined: 7 years ago

I first created this issue on the osTicket forum but it seems nobody else has this issue.

Please have a look at https://forum.osticket.com/d/94357-ticket-thread-lastmessage-shows-not-last-message-but-first/6

In the Response/Reply template I want to include the last message from the client to which I am replying.<br />
So I included:

%{ticket.thread.lastmessage}

From another user on the forum I know this is the correct field.

I tested also: %{message.lastmessage} which is in the default Response/Reply Template from osTicket Default Template (HTML), but however this is in the default template, it says that this variable is not valid for this context. (This seems to be a bug on it's own).

Thanks for the support.

osTicket v1.12 // osTicket-1.12-Awesome-102<br />
PHP 5.6.39 // MySQL 10.3.11 // Apache/2.2.34 (Unix) mod_fastcgi/mod_fastcgi-SNAP-0910052141 web server


8 Replies
Posts: 1177
Admin
(@stevland)
Member
Joined: 2 months ago

@Code54,

Regarding osTicket Awesome, there is nothing that should change the way templates work.

When problems such as this arise, the first step is to always isolate whether or not it is actually an issue with osTicket Awesome.

Do you still have your original osTicket installation? As per the installation instructions I recommend holding onto it for situations like this.

RBGE in the osTicket forum is recommending the same thing. He is using the term "clone" installation. I would call it a "parallel" installation. If you didn't keep a parallel osTicket installation, you can easily add one.

Assuming you have osTicket Awesome installed into a folder named support/, upload the osTicket (v1.12?) files into a folder named support-old/.

Copy support/include/ost-config.php to support-old/include/.

Visit your core osTicket installation by going to www.yourdomain.com/support-old/scp and troubleshoot your email templates.

If it turns out that it is an issue with osTicket Awesome, let me know!


Reply
Posts: 19
Topic starter
(@code54)
Member
Joined: 7 years ago

I tried to install a parallel installation but I ran into an issue.

I can reply:

 

But I got this error after submit:

If I refresh the page, it loads correctly and I can see that the last reply was saved.

However, it was not emailed.


Reply
Posts: 1177
Admin
(@stevland)
Member
Joined: 2 months ago

Unfortunately, a 500 error is a very generic server-side error that tells us almost nothing. There will be more information as to what is going wrong recorded somewhere however. Please check your PHP / Apache / MySQL logs for the relevant error message.

 


Reply
Posts: 19
Topic starter
(@code54)
Member
Joined: 7 years ago

Hi Stevland,

Thank you for your support. I understand that you ask to verify this first, but only after doing all kinds of tests on our own system I went through the trouble of creating a ticket on the osTicket forum. After checking with other users that we are not making some kind of silly mistake, I created a ticket on this forum. Then I also went through the trouble of setting-up a parallel installation. Now I run into the problem with that. 

I still understand what your are asking and why. You sell a template so it very unlikely that functionality like this is effected. I agree. But is it too much to ask to just test this once? It's an easy test. I can even send an email to your osTicket and see what a reply looks like.

It would even be enough for me to hear from another user that the field %{ticket.thread.lastmessage} works as expected.

Thank you.

Robert


Reply
Page 1 / 2
Share: