Kludge to assign a State to a Response Template

Dont create your support topics here! No new topics with questions allowed!

Moderator: crythias

User avatar
Posts: 9980
Joined: 04 May 2010, 18:38
OTRS Version?: 5.0.x
Location: SouthWest Florida, USA

Kludge to assign a State to a Response Template

Postby crythias » 08 Feb 2018, 02:52

In ArticleActionMenu.tt

Around line 100, you can find the following, which you can just add if/then:

Code: Select all

    if ($(this).val() > 0) {
        URL = Core.Config.Get('Baselink') + $(this).parents().serialize();
        if ($(this).val() == 3) {
           URL = URL + '&StateID=7';
        window.setTimeout(function() {

Basically, if the response template ID is 3, the StateID will be 7.
OTRS 5.0.x (private/testing/public) on Linux with MySQL database. Also on github.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask

Return to “Howtos”

Who is online

Users browsing this forum: No registered users and 2 guests