Merge pull request #1592 from makeplane/sync/ce-ee
Sync: Community Changes
This commit is contained in:
@@ -212,7 +212,7 @@ class UserAssetsV2Endpoint(BaseAPIView):
|
||||
# update the attributes
|
||||
asset.attributes = request.data.get("attributes", asset.attributes)
|
||||
# save the asset
|
||||
asset.save()
|
||||
asset.save(created_by=request.user)
|
||||
return Response(status=status.HTTP_204_NO_CONTENT)
|
||||
|
||||
def delete(self, request, asset_id):
|
||||
@@ -474,7 +474,7 @@ class WorkspaceFileAssetEndpoint(BaseAPIView):
|
||||
# update the attributes
|
||||
asset.attributes = request.data.get("attributes", asset.attributes)
|
||||
# save the asset
|
||||
asset.save()
|
||||
asset.save(created_by=request.user)
|
||||
return Response(status=status.HTTP_204_NO_CONTENT)
|
||||
|
||||
def delete(self, request, slug, asset_id):
|
||||
@@ -721,7 +721,7 @@ class ProjectAssetEndpoint(BaseAPIView):
|
||||
# update the attributes
|
||||
asset.attributes = request.data.get("attributes", asset.attributes)
|
||||
# save the asset
|
||||
asset.save()
|
||||
asset.save(created_by=request.user)
|
||||
return Response(status=status.HTTP_204_NO_CONTENT)
|
||||
|
||||
@allow_permission([ROLE.ADMIN, ROLE.MEMBER, ROLE.GUEST])
|
||||
|
||||
@@ -274,5 +274,5 @@ class IssueAttachmentV2Endpoint(BaseAPIView):
|
||||
# Get the storage metadata
|
||||
if not issue_attachment.storage_metadata:
|
||||
get_asset_object_metadata.delay(str(issue_attachment.id))
|
||||
issue_attachment.save()
|
||||
issue_attachment.save(created_by=request.user)
|
||||
return Response(status=status.HTTP_204_NO_CONTENT)
|
||||
|
||||
@@ -169,7 +169,7 @@ class EntityAssetEndpoint(BaseAPIView):
|
||||
# update the attributes
|
||||
asset.attributes = request.data.get("attributes", asset.attributes)
|
||||
# save the asset
|
||||
asset.save()
|
||||
asset.save(created_by=request.user)
|
||||
return Response(status=status.HTTP_204_NO_CONTENT)
|
||||
|
||||
def delete(self, request, anchor, pk):
|
||||
|
||||
@@ -204,7 +204,7 @@ export const CreateUpdateIssueModalBase: React.FC<IssuesModalProps> = observer((
|
||||
issueTypeId: response.type_id,
|
||||
projectId: response.project_id,
|
||||
workspaceSlug: workspaceSlug.toString(),
|
||||
isDraft: isDraft,
|
||||
isDraft: is_draft_issue,
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user