https://www.redmine.org/https://www.redmine.org/favicon.ico?16793021292011-08-18T08:42:06ZRedmineRedmine - Defect #9080: Shared versions not shown when upload a filehttps://www.redmine.org/issues/9080?journal_id=315732011-08-18T08:42:06ZEtienne Massip
<ul><li><strong>Category</strong> set to <i>Documents</i></li><li><strong>Target version</strong> set to <i>Candidate for next minor release</i></li></ul><p>Looking at <a class="source" href="https://www.redmine.org/projects/redmine/repository/svn/entry/tags/1.2.1/app/controllers/files_controller.rb#L23">source:/tags/1.2.1/app/controllers/files_controller.rb#L23</a>:</p>
<pre><code class="ruby syntaxhl"><span class="vi">@project</span><span class="p">.</span><span class="nf">versions</span><span class="p">.</span><span class="nf">sort</span>
</code></pre>
<p>should be :</p>
<pre><code class="ruby syntaxhl"><span class="vi">@project</span><span class="p">.</span><span class="nf">shared_versions</span><span class="p">.</span><span class="nf">sort</span>
</code></pre> Redmine - Defect #9080: Shared versions not shown when upload a filehttps://www.redmine.org/issues/9080?journal_id=323512011-09-19T13:23:53ZAlexey Demakov
<ul></ul><p>It's not so easy. After applying suggested patch I was able to upload file, but didn't see it in list.</p>
<p>I updated L36 from</p>
<pre>
@containers += @project.versions.find(:all, :include => :attachments, :order => sort_clause).sort.reverse
</pre>
<p>to</p>
<pre>
@containers += @project.shared_versions.find(:all, :include => :attachments, :order => sort_clause).sort.reverse
</pre>
<p>and now I see all files attached to shared version in all projects that share this version!<br />I.e. Root project and subproject both have the same list of files for shared version,<br />however some of these files were uploaded in root project and some - in subproject.</p>
<p>In database, each attachment has container. When versions were not shared there was one-to-one<br />correspondence between versions and projects and files were listed only in one project.<br />If version is shared there is no way to determine a project in which file was uploaded<br />and all files are listed in all projects that share this version.</p>
<p>And I don't see a way to fix this bug without changing of database structure.</p> Redmine - Defect #9080: Shared versions not shown when upload a filehttps://www.redmine.org/issues/9080?journal_id=503432013-07-03T06:31:04ZB D
<ul></ul><p>I can confirm that this issue is still exists in 2.3.0.stable.11727 and it's a little annoying that i can share versions but i can't use them properly.</p> Redmine - Defect #9080: Shared versions not shown when upload a filehttps://www.redmine.org/issues/9080?journal_id=569772014-06-23T16:09:08ZGareth Sylvester-Bradley
<ul></ul><p>+1</p>
<p>Shared versions are much less useful for me if I can't use the versions of a project for Files in its subprojects as well as for Issues in those subprojects.</p> Redmine - Defect #9080: Shared versions not shown when upload a filehttps://www.redmine.org/issues/9080?journal_id=569902014-06-23T22:59:10ZToshi MARUYAMA
<ul><li><strong>Category</strong> changed from <i>Documents</i> to <i>Roadmap</i></li></ul> Redmine - Defect #9080: Shared versions not shown when upload a filehttps://www.redmine.org/issues/9080?journal_id=628902015-04-07T13:03:40ZGo MAEDA
<ul><li><strong>Has duplicate</strong> <i><a class="issue tracker-1 status-5 priority-4 priority-default closed" href="/issues/5212">Defect #5212</a>: New files page doesn't get shared versions</i> added</li></ul> Redmine - Defect #9080: Shared versions not shown when upload a filehttps://www.redmine.org/issues/9080?journal_id=628912015-04-07T13:04:38ZGo MAEDA
<ul><li><strong>Category</strong> changed from <i>Roadmap</i> to <i>Files</i></li></ul>