Shared versions not shown when upload a file
|Target version:||Candidate for next minor release|
When trying to upload a file in a subproject with inherited versions, combo box not show inherited versions to associate file uploading.
This issue can be reproduced in all versions, including 1.2.0.
#1 Updated by Etienne Massip almost 9 years ago
- Category set to Documents
- Target version set to Candidate for next minor release
should be :
#2 Updated by Alexey Demakov over 8 years ago
It's not so easy. After applying suggested patch I was able to upload file, but didn't see it in list.
I updated L36 from
@containers += @project.versions.find(:all, :include => :attachments, :order => sort_clause).sort.reverse
@containers += @project.shared_versions.find(:all, :include => :attachments, :order => sort_clause).sort.reverse
and now I see all files attached to shared version in all projects that share this version!
I.e. Root project and subproject both have the same list of files for shared version,
however some of these files were uploaded in root project and some - in subproject.
In database, each attachment has container. When versions were not shared there was one-to-one
correspondence between versions and projects and files were listed only in one project.
If version is shared there is no way to determine a project in which file was uploaded
and all files are listed in all projects that share this version.
And I don't see a way to fix this bug without changing of database structure.