Commit 36421bd5 authored by Mickaël Desfrênes's avatar Mickaël Desfrênes
Browse files

fix project_id bug

parent b3fb175d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -467,7 +467,7 @@ def add_collection(
            _check_project_permission(user, parent.project, "collection.add")

    collection_instance, created = Collection.objects.get_or_create(
        title=title, parent=parent, project=parent.project
        title=title, parent=parent, project_id=project_id or parent.project.pk
    )
    # collection was previously soft-deleted, reactivate it.
    if collection_instance.deleted_at: