Hey forum,
I got tasked to modify the behaviour of escalations. I narrowed down the function TicketEscalationIndexBuild from the TicketObject. Is there an elegant way to modify only this function without copying and customizing the whole Ticket.pm?
Could I create another Ticket.pm in ~/Custom and only include one function?
Many thanks and best regards
Overload an object function
-
- Znuny guru
- Posts: 2210
- Joined: 13 Mar 2014, 09:16
- Znuny Version: 6.0.14
- Real Name: Rolf Straub
Overload an object function
Currently using: OTRS 6.0.14 -- MariaDB -- Ubuntu 16 LTS
-
- 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: Overload an object function
You can create a custom ticket module. See https://github.com/OTRS/otrs/blob/maste ... pm.example and https://github.com/OTRS/otrs/blob/maste ... t.xml#L493
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
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
-
- Znuny guru
- Posts: 2210
- Joined: 13 Mar 2014, 09:16
- Znuny Version: 6.0.14
- Real Name: Rolf Straub
Re: Overload an object function
Oh neat, that looks exactly like what I need. Thanks a bunch!
Currently using: OTRS 6.0.14 -- MariaDB -- Ubuntu 16 LTS