Ivan - Create Ticket::addEvent function [skip ci]

This commit is contained in:
ivan 2016-09-29 14:46:31 -03:00
parent 34d8e9702b
commit 4512d4b484
2 changed files with 5 additions and 1 deletions

View File

@ -56,7 +56,7 @@ class CommentController extends Controller {
$comment->authorUser = Controller::getLoggedUser();
}
$this->ticket->ownTicketeventList->add($comment);
$this->ticket->addEvent($comment);
$this->ticket->store();
}
}

View File

@ -132,4 +132,8 @@ class Ticket extends DataStore {
return $events;
}
public function addEvent(Ticketevent $event) {
$this->ownTicketeventList->add($event);
}
}