Merge pull request #3067 from urbanrotnik/ur-sci-5379-clean-folder-info

Remove project_folder reference on project archive [SCI-5379]
This commit is contained in:
Urban Rotnik 2021-01-12 11:27:08 +01:00 committed by GitHub
commit 3ad14e06b2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -213,6 +213,7 @@ class ProjectsController < ApplicationController
next unless can_archive_project?(project) next unless can_archive_project?(project)
project.transaction do project.transaction do
project.project_folder = nil
project.archive!(current_user) project.archive!(current_user)
log_activity(:archive_project, project) log_activity(:archive_project, project)
counter += 1 counter += 1