Defect #31087

Updated by Go MAEDA over 2 years ago

Deleting a version which has one or more attachments unexpectedly succeeds if no issues are associated with the version.

You can reproduce the problem with the following steps:

1. Create a new version
2. Open the "Files" tab in the project menu
3. Attach a file to the version
4. Delete the version. Attached files are deleted along with the version without warning

I think Redmine should not now allow deleting a version with attachments.

The problem was originally reported by Karel Pičman in #1265#note-6. He also provided a "patch":https://www.redmine.org/attachments/download/22618/versioned_files.patch.

Back