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

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 { ...@@ -25,8 +25,7 @@ sub new {
LogObject => $Kernel::OM->Get('Kernel::System::Log'), LogObject => $Kernel::OM->Get('Kernel::System::Log'),
QueueObject => $Kernel::OM->Get('Kernel::System::Queue'), QueueObject => $Kernel::OM->Get('Kernel::System::Queue'),
TicketObject => $Kernel::OM->Get('Kernel::System::Ticket'), TicketObject => $Kernel::OM->Get('Kernel::System::Ticket'),
UserObject => $Kernel::OM->Get('Kernel::System::User'), UserObject => $Kernel::OM->Get('Kernel::System::User')
ArticleObject => $Kernel::OM->Get('Kernel::System::Ticket::Article')
}; };
bless($Self, $Type); bless($Self, $Type);
return $Self; return $Self;
...@@ -153,7 +152,7 @@ sub StoreAttachments { ...@@ -153,7 +152,7 @@ sub StoreAttachments {
); );
my %LatestVersion = pop(@TicketHistory); my %LatestVersion = pop(@TicketHistory);
my $ArticleID = $LatestVersion{ArticleID}; my $ArticleID = $LatestVersion{ArticleID};
my %Attachments = $Self->{ArticleObject}->ArticleAttachmentIndex( my %Attachments = $Self->{TicketObject}->ArticleAttachmentIndex(
ArticleID => $ArticleID, ArticleID => $ArticleID,
UserID => $Self->{UserID} 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