mirror of
https://code.sup39.dev/repos/Wqawg
synced 2024-12-28 09:34:51 +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
|
tr <- getJust trid
|
||||||
delete trlid
|
delete trlid
|
||||||
delete trid
|
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
|
deleteResolve (Right ractid) = do
|
||||||
Entity trrid trr <- MaybeT $ lift $ getBy $ UniqueTicketResolveRemoteActivity ractid
|
Entity trrid trr <- MaybeT $ lift $ getBy $ UniqueTicketResolveRemoteActivity ractid
|
||||||
lift $ lift $ do
|
lift $ lift $ do
|
||||||
|
@ -2141,7 +2144,10 @@ undoC (Entity _pidUser personUser) sharerUser summary audience undo@(Undo uObjec
|
||||||
tr <- getJust trid
|
tr <- getJust trid
|
||||||
delete trrid
|
delete trrid
|
||||||
delete trid
|
delete trid
|
||||||
return $ Just $ ticketResolveTicket tr
|
let ltid = ticketResolveTicket tr
|
||||||
|
tid <- localTicketTicket <$> getJust ltid
|
||||||
|
update tid [TicketStatus =. TSTodo]
|
||||||
|
return $ Just ltid
|
||||||
|
|
||||||
pushCommitsC
|
pushCommitsC
|
||||||
:: (Entity Person, Sharer)
|
:: (Entity Person, Sharer)
|
||||||
|
|
Loading…
Reference in a new issue