I'm trying to create a custom module based on this guide.
I added the XML file, the .pm file in the described directories, and the configuration line in Config.pm. However, I only get a blank screen when triggered.
The /var/log/httpd/error_log log says (module's called AddToShiftreport):
Code: Select all
AddToShiftreport.pm: Subroutine new redefined at /opt/otrs//Kernel/System/Ticket/Event/AddToShiftreport.pm line 20.
AddToShiftreport.pm: Subroutine Run redefined at /opt/otrs//Kernel/System/Ticket/Event/AddToShiftreport.pm line 43.
Config.pm module load:
(in the Load{} 'Start of your own config options!!!' section)
Code: Select all
$Self->{'Ticket::EventModulePost'}->{'137-AddToShiftreport'} = {
'Event' => '(TicketLockUpdate)',
'Module' => 'Kernel::System::Ticket::Event::AddToShiftreport',
};
I'm running OTRS 3.0.11
What am I doing wrong?