Ivan - Create Ticket::addEvent function [skip ci]
This commit is contained in:
parent
34d8e9702b
commit
4512d4b484
|
@ -56,7 +56,7 @@ class CommentController extends Controller {
|
|||
$comment->authorUser = Controller::getLoggedUser();
|
||||
}
|
||||
|
||||
$this->ticket->ownTicketeventList->add($comment);
|
||||
$this->ticket->addEvent($comment);
|
||||
$this->ticket->store();
|
||||
}
|
||||
}
|
|
@ -132,4 +132,8 @@ class Ticket extends DataStore {
|
|||
|
||||
return $events;
|
||||
}
|
||||
|
||||
public function addEvent(Ticketevent $event) {
|
||||
$this->ownTicketeventList->add($event);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue