mirror of
https://code.sup39.dev/repos/Wqawg
synced 2024-12-27 16:54:53 +09:00
C2S: Fix bug: undoC: When deleting TicketResolve, ticketStatus wasn't updated
This commit is contained in:
parent
9f34106a87
commit
be3cf50283
1 changed files with 8 additions and 2 deletions
|
@ -2133,7 +2133,10 @@ undoC (Entity _pidUser personUser) sharerUser summary audience undo@(Undo uObjec
|
|||
tr <- getJust trid
|
||||
delete trlid
|
||||
delete trid
|
||||
return $ Just $ ticketResolveTicket tr
|
||||
let ltid = ticketResolveTicket tr
|
||||
tid <- localTicketTicket <$> getJust ltid
|
||||
update tid [TicketStatus =. TSTodo]
|
||||
return $ Just ltid
|
||||
deleteResolve (Right ractid) = do
|
||||
Entity trrid trr <- MaybeT $ lift $ getBy $ UniqueTicketResolveRemoteActivity ractid
|
||||
lift $ lift $ do
|
||||
|
@ -2141,7 +2144,10 @@ undoC (Entity _pidUser personUser) sharerUser summary audience undo@(Undo uObjec
|
|||
tr <- getJust trid
|
||||
delete trrid
|
||||
delete trid
|
||||
return $ Just $ ticketResolveTicket tr
|
||||
let ltid = ticketResolveTicket tr
|
||||
tid <- localTicketTicket <$> getJust ltid
|
||||
update tid [TicketStatus =. TSTodo]
|
||||
return $ Just ltid
|
||||
|
||||
pushCommitsC
|
||||
:: (Entity Person, Sharer)
|
||||
|
|
Loading…
Reference in a new issue