Skip to content

Commit

Permalink
fix: 修复工单审计员切换其他资产,原资产未删除问题 (#11512)
Browse files Browse the repository at this point in the history
Co-authored-by: feng <1304903146@qq.com>
  • Loading branch information
fit2bot and feng626 committed Sep 6, 2023
1 parent 305a426 commit c5102e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/tickets/api/ticket.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def approve(self, request, *args, **kwargs):
serializer = self.get_serializer(instance, data=request.data, partial=partial)
with tmp_to_root_org():
serializer.is_valid(raise_exception=True)
instance = serializer.save()
instance = serializer.save()
instance.approve(processor=request.user)
return Response('ok')

Expand Down

0 comments on commit c5102e5

Please sign in to comment.