[OTRS 6] New ticket issue JS

Moderator: crythias

Post Reply
ruzzetto
OTRS wizard
Posts: 182
Joined: 14 Apr 2017, 10:53
OTRS Version?: 5.0.20

[OTRS 6] New ticket issue JS

Post by ruzzetto » 06 Nov 2018, 18:30

Hello,
in my otrs 5 env I modified CustomerTicketMessage.tt file in order to fill ticket body with a formatted text based on specific service.

In my test env based on otrs 6 this does not happen. Someone is facing the same issue?

Thanks,
Fabio

reneeb
OTRS guru
Posts: 4724
Joined: 13 Mar 2011, 09:54
OTRS Version?: 3.3.x
Company: Perl-Services.de
Contact:

Re: [OTRS 6] New ticket issue JS

Post by reneeb » 06 Nov 2018, 20:59

What did you modify? What's the error message?
Perl / OTRS development: http://perl-services.de
Free OTRS add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de

ruzzetto
OTRS wizard
Posts: 182
Joined: 14 Apr 2017, 10:53
OTRS Version?: 5.0.20

Re: [OTRS 6] New ticket issue JS

Post by ruzzetto » 07 Nov 2018, 10:33

I modified CustomerTicketMessage with this code:

Code: Select all

selectQueues();

function selectServices() {
        switch ($('#ServiceID').val() ) {

                 case  "xx":
                   initText('','text text text text text text')
                 case  "xx":
                   initText('',text text text text text text');
                 case  "xx":
                   initText('',text text text text text text');
                 case  "xx":
                    initText('',text text text text text text');
                   break;

with this small piece of code in my production env a new ticket with specific XX service is filled by "text text text text text text". After upgrade my testing env from 5 to 6 this code stopped to work.

ruzzetto
OTRS wizard
Posts: 182
Joined: 14 Apr 2017, 10:53
OTRS Version?: 5.0.20

Re: [OTRS 6] New ticket issue JS

Post by ruzzetto » 09 Nov 2018, 11:18

nobody is encountering same issue moving to release 6?

wurzel
OTRS guru
Posts: 2548
Joined: 08 Jul 2010, 22:25
OTRS Version?: 6.0.x

Re: [OTRS 6] New ticket issue JS

Post by wurzel » 09 Nov 2018, 15:13

Hi,

modifying code (espacially your code change) is not very common to do during migration.

Florian
    ((OTRS)) Community Edition 6.0.x, LAMP LIVE auf Debian 9
    OTRS 7 SILVER

    -- Ich beantworte keine Forums-Fragen PN - No PN please

    I won't answer to unfriendly users any more. A greeting and regards are just polite.

    reneeb
    OTRS guru
    Posts: 4724
    Joined: 13 Mar 2011, 09:54
    OTRS Version?: 3.3.x
    Company: Perl-Services.de
    Contact:

    Re: [OTRS 6] New ticket issue JS

    Post by reneeb » 09 Nov 2018, 15:42

    reneeb wrote:
    06 Nov 2018, 20:59
    What's the error message?
    Perl / OTRS development: http://perl-services.de
    Free OTRS add ons from the community: http://opar.perl-services.de
    Commercial add ons: http://feature-addons.de

    ruzzetto
    OTRS wizard
    Posts: 182
    Joined: 14 Apr 2017, 10:53
    OTRS Version?: 5.0.20

    Re: [OTRS 6] New ticket issue JS

    Post by ruzzetto » 12 Nov 2018, 18:51

    wurzel wrote:
    09 Nov 2018, 15:13
    Hi,

    modifying code (espacially your code change) is not very common to do during migration.

    Florian
    Hi, I didn't touch code. Simply the same code does not work with new version

    ruzzetto
    OTRS wizard
    Posts: 182
    Joined: 14 Apr 2017, 10:53
    OTRS Version?: 5.0.20

    Re: [OTRS 6] New ticket issue JS

    Post by ruzzetto » 12 Nov 2018, 18:56

    reneeb wrote:
    09 Nov 2018, 15:42
    reneeb wrote:
    06 Nov 2018, 20:59
    What's the error message?
    No error message, simply code won't load and ticket body is empty and not filled with text.

    Thanks

    Post Reply