fix: 修复工单审计员切换其他资产,原资产未删除问题 (#11511)

Co-authored-by: feng <1304903146@qq.com>
pull/11514/head
fit2bot 1 year ago committed by GitHub
parent da9bd11db5
commit e50189e284
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -86,7 +86,7 @@ class TicketViewSet(CommonApiMixin, viewsets.ModelViewSet):
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')

Loading…
Cancel
Save