プロジェクト

全般

プロフィール

Vote #70563

未完了

Shared versions not shown when upload a file

Admin Redmine さんが3年以上前に追加. 3年以上前に更新.

ステータス:
New
優先度:
通常
担当者:
-
カテゴリ:
Files_52
開始日:
2011/08/18
期日:
進捗率:

0%

予定工数:
category_id:
52
version_id:
33
issue_org_id:
9080
author_id:
38411
assigned_to_id:
0
comments:
7
status_id:
1
tracker_id:
1
plus1:
1
affected_version:
closed_on:
affected_version_id:
ステータス-->[New]

説明

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.


journals

Looking at source:/tags/1.2.1/app/controllers/files_controller.rb#L23:

<pre><code class="ruby">
@project.versions.sort
</code></pre>

should be :

<pre><code class="ruby">
@project.shared_versions.sort
</code></pre>

--------------------------------------------------------------------------------
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

<pre>
@containers += @project.versions.find(:all, :include => :attachments, :order => sort_clause).sort.reverse
</pre>

to

<pre>
@containers += @project.shared_versions.find(:all, :include => :attachments, :order => sort_clause).sort.reverse
</pre>

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.

--------------------------------------------------------------------------------
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.
--------------------------------------------------------------------------------
+1

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.

--------------------------------------------------------------------------------

--------------------------------------------------------------------------------

--------------------------------------------------------------------------------

--------------------------------------------------------------------------------


related_issues

duplicates,Closed,5212,New files page doesn't get shared versions

Admin Redmine さんが3年以上前に更新

  • カテゴリFiles_52 にセット
  • 対象バージョンCandidate for next minor release_33 にセット

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0