diff --git a/server/controllers/ticket/comment.php b/server/controllers/ticket/comment.php index cbf077ed..83fb5513 100644 --- a/server/controllers/ticket/comment.php +++ b/server/controllers/ticket/comment.php @@ -56,7 +56,7 @@ class CommentController extends Controller { $comment->authorUser = Controller::getLoggedUser(); } - $this->ticket->ownTicketeventList->add($comment); + $this->ticket->addEvent($comment); $this->ticket->store(); } } \ No newline at end of file diff --git a/server/models/Ticket.php b/server/models/Ticket.php index 808d36fd..b2c73b2d 100644 --- a/server/models/Ticket.php +++ b/server/models/Ticket.php @@ -132,4 +132,8 @@ class Ticket extends DataStore { return $events; } + + public function addEvent(Ticketevent $event) { + $this->ownTicketeventList->add($event); + } }