Need Module! in call to TicketCustomerSet

Moderator: crythias

Locked
steeman
Znuny newbie
Posts: 67
Joined: 22 May 2013, 11:35
Znuny Version: 3.3.2
Real Name: Philip Steeman
Company: VIVES

Need Module! in call to TicketCustomerSet

Post by steeman »

Hi,
I try to make a custom module (called via a Generic Agent run task). When I run it, it works but I get 2 errors in de log (2 x "Need Module!")
When I look in the code of Ticket.pm it has something to do with $Self->HistoryAdd and $Self->EventHandler .
The code works and I get Success = 1, but I don't like errors :( . Someone an idea (OTRS6)

My code (as short as possible to show):

Code: Select all

package Kernel::Vives::VivesUitleen;
use strict;
use warnings;

sub new {
  my ( $Type, %Param ) = @_;
  # allocate new hash for object
  my $Self = {};
  bless( $Self, $Type );
  return $Self;
}

sub Run {
    my ($Self, %Param) = @_;
    my $TicketObject = $Kernel::OM->Get('Kernel::System::Ticket');
    my $TicketID = $Param{TicketID};

    my $Success = $TicketObject->TicketCustomerSet(
        No       => 'u0080476',
        User     => 'u0080476',
        TicketID => $TicketID,
        UserID   => 1,
    );
}
1;

steeman
Znuny newbie
Posts: 67
Joined: 22 May 2013, 11:35
Znuny Version: 3.3.2
Real Name: Philip Steeman
Company: VIVES

Re: Need Module! in call to TicketCustomerSet

Post by steeman »

Found it myself. Module should be in Kernel/Modules.
Locked