New Ticket Mask for Customers

English! place to talk about development, programming and coding
Post Reply
stoicamarcus23
Znuny newbie
Posts: 18
Joined: 26 Jan 2016, 10:12
Znuny Version: OTRS 5

New Ticket Mask for Customers

Post by stoicamarcus23 »

Hello,
I would like to create a new ticket mask for Customer interface,meaning that I would like two "Create a new ticket " tabs just like in the Agent interface ,where you have "New Phone Ticket" and "New Email Ticket ".
Has anyone done this before ?
I have checked which file is used when a new ticket is created from the Customer interface and I have done so:
1)Copyed the CustomerTicketMessage.pm to CustomerTicketMessage2.pm
2)Modified the file

Code: Select all

package Kernel::Modules::CustomerTicketMessage2;
3)Error Message: Module Kernel::Modules::CustomerTicketMessage2 not registered in Kernel/Config.p[..]
Do you have any ideas how can I do this task ?
Thank you very much ,
Stoica Marcus
reneeb
Znuny guru
Posts: 5018
Joined: 13 Mar 2011, 09:54
Znuny Version: 6.0.x
Real Name: Renée Bäcker
Company: Perl-Services.de
Contact:

Re: New Ticket Mask for Customers

Post by reneeb »

You have to create a sysconfig option to register it... Something like https://github.com/OTRS/otrs/blob/maste ... .xml#L9556
Perl / Znuny development: http://perl-services.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
stoicamarcus23
Znuny newbie
Posts: 18
Joined: 26 Jan 2016, 10:12
Znuny Version: OTRS 5

Re: New Ticket Mask for Customers

Post by stoicamarcus23 »

Do you know about this error Can't call method "FatalError" on an undefined value at /opt/app/ABC//Kernel/Modules/AgentHelloWorld.pm line 27.?

Code: Select all

 for (qw(ParamObject DBObject TicketObject LayoutObject LogObject QueueObject ConfigObject EncodeObject MainObject)) {
        if ( !$Self->{$_} ) {
            $Self->{LayoutObject}->FatalError( Message => "Got no $_!" );
        }
    }
Thank you very much ,
Stoica Marcus
reneeb
Znuny guru
Posts: 5018
Joined: 13 Mar 2011, 09:54
Znuny Version: 6.0.x
Real Name: Renée Bäcker
Company: Perl-Services.de
Contact:

Re: New Ticket Mask for Customers

Post by reneeb »

Objecthandling has changed in OTRS5... There is a ObjectManager and you get the objects with

Code: Select all

$Kernel::OM->Get('...')
. See any Kernel/Modules/*.pm
Perl / Znuny development: http://perl-services.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
Post Reply