Skip to content

Commit

Permalink
fix(api): Filter ticket comments to match ticket
Browse files Browse the repository at this point in the history
  • Loading branch information
jon-nfc committed Sep 1, 2024
1 parent 967b925 commit 9732656
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/api/views/core/ticket_comments.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ def retrieve(self, request, *args, **kwargs):

def get_queryset(self):

if 'ticket_id' in self.kwargs:

self.queryset = self.queryset.filter(ticket=self.kwargs['ticket_id'])

if 'pk' in self.kwargs:

self.queryset = self.queryset.filter(pk = self.kwargs['pk'])
Expand Down

0 comments on commit 9732656

Please sign in to comment.