Commit 9724fa53 authored by Timmer, Marius's avatar Timmer, Marius

Bugfix: ArticleAttachmentIndex can not be called on the ArticleObject itself...

Bugfix: ArticleAttachmentIndex can not be called on the ArticleObject itself but on the TicketObject
parent 6392bfc3
......@@ -25,8 +25,7 @@ sub new {
LogObject => $Kernel::OM->Get('Kernel::System::Log'),
QueueObject => $Kernel::OM->Get('Kernel::System::Queue'),
TicketObject => $Kernel::OM->Get('Kernel::System::Ticket'),
UserObject => $Kernel::OM->Get('Kernel::System::User'),
ArticleObject => $Kernel::OM->Get('Kernel::System::Ticket::Article')
UserObject => $Kernel::OM->Get('Kernel::System::User')
};
bless($Self, $Type);
return $Self;
......@@ -153,7 +152,7 @@ sub StoreAttachments {
);
my %LatestVersion = pop(@TicketHistory);
my $ArticleID = $LatestVersion{ArticleID};
my %Attachments = $Self->{ArticleObject}->ArticleAttachmentIndex(
my %Attachments = $Self->{TicketObject}->ArticleAttachmentIndex(
ArticleID => $ArticleID,
UserID => $Self->{UserID}
);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment