Defect #1409

Prevent adding of files if no version is defined

Added by Andreas Deininger over 14 years ago. Updated almost 14 years ago.

Status:ClosedStart date:2008-06-09
Priority:NormalDue date:
Assignee:-% Done:


Target version:-
Resolution: Affected version:


How to reprdouce:
For a project, that does not have any versions defined, try to add a new file:

Choose a file and click the "Add"-button.
You are redirected to the file list, though no file was added. This is confusing.

Proposed solution: Add a validation checking whether a version was defined. In case there is no version defined, show an appropriate error message while trying to add a file. Or simply block access to the submit form, showing a message: Prior to submitting files, you have to define a version first (or so).

notice_on_attach_without_version_07262008_r704.diff Magnifier (2.59 KB) Matt Haley, 2008-07-28 04:21

Related issues

Related to Redmine - Defect #1053: Unable to upload file via file menu due to version filed. Closed 2008-04-13


#1 Updated by Anonymous over 14 years ago

Yep, we've been hit by this.

#2 Updated by Matt Haley over 14 years ago

Here is a patch that displays a notice at the top of the page if no versions have been created in the project. Created against r1704.

#3 Updated by Mischa The Evil almost 14 years ago

  • Category set to Attachments
  • Status changed from New to Closed

This is fixed/implemented in 0.8.1, thus issue closed...

Also available in: Atom PDF