Fix bug in DB query in getTicketsR

This commit is contained in:
fr33domlover 2020-02-08 08:55:28 +00:00
parent 6e2445a31f
commit 6fa0a9cb46

View file

@ -73,7 +73,8 @@ getTicketSummaries mfilt morder offlim jid = do
on $ t ^. TicketId ==. lt ^. LocalTicketTicket on $ t ^. TicketId ==. lt ^. LocalTicketTicket
where_ $ tpl ^. TicketProjectLocalProject ==. val jid where_ $ tpl ^. TicketProjectLocalProject ==. val jid
groupBy groupBy
( t ^. TicketId, s ?. SharerId ( t ^. TicketId, lt ^. LocalTicketId
, s ?. SharerId
, ra ?. RemoteActorId, ro ?. RemoteObjectId, i ?. InstanceId , ra ?. RemoteActorId, ro ?. RemoteObjectId, i ?. InstanceId
) )
for_ mfilt $ \ filt -> where_ $ filt t for_ mfilt $ \ filt -> where_ $ filt t