Project

General

Profile

Actions

Defect #4728

closed

Bugs in Version sharing

Added by Maxim Krušina about 14 years ago. Updated almost 14 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Roadmap
Target version:
-
Start date:
2010-02-03
Due date:
% Done:

100%

Estimated time:
Resolution:
Invalid
Affected version:

Description

  • closed versions are still listed in Target version field, when adding/editing ticket
  • shared versions are visible in subproject's Settings/Verions, but aren't listed in Target version field, when adding/editing ticket

Redmine 0.9.1.devel.3360 (MySQL)

Any ideas / help?

Actions #1

Updated by Anonymous about 14 years ago

Another:

System Issues - common for all projects - are displayed as "<Project_where_admin_added_global_version> - <version_id>". Should be rather "Global - <version_id>" or "System - <version_id>". Patch against 0.9.2 attached.

root@redmine:/opt/data/redmine# diff -u app/helpers/application_helper.rb.o  app/helpers/application_helper.rb
--- app/helpers/application_helper.rb.o    2010-02-10 15:47:34.000000000 +0100
+++ app/helpers/application_helper.rb    2010-02-10 15:51:34.000000000 +0100
@@ -138,7 +138,9 @@
   end

   def format_version_name(version)
-    if version.project == @project
+    if version.sharing == 'system'
+        h("Global - #{version}")
+    elsif version.project == @project
         h(version)
     else
       h("#{version.project} - #{version}")
Actions #2

Updated by Anonymous about 14 years ago

  • Status changed from New to Resolved
  • % Done changed from 0 to 100

shared versions are visible in subproject's Settings/Verions, but aren't listed in Target version field, when adding/editing ticket

This is (at least in my own case) caused by bad interaction with redmine_subtasks plugin which overwrites whole issue_form. Following 2 line patch corrects the bahviour, but leaves doubts about other problems with redmine_subtask plugin.

--- redmine-0.9.2-copy/vendor/plugins/redmine_subtasks/app/views/issues/_form.rhtml    2010-02-09 16:50:32.000000000 +0100
+++ redmine/vendor/plugins/redmine_subtasks/app/views/issues/_form.rhtml    2010-02-10 18:35:21.000000000 +0100
@@ -34,8 +34,8 @@
                      :class => 'small', :tabindex => 199) if authorize_for('projects', 'add_issue_category') %></p>
 <% end %>
 <%= content_tag('p', f.select(:fixed_version_id, 
-                              (@project.versions.sort.collect {|v| [v.name, v.id]}),
-                              { :include_blank => true })) unless @project.versions.empty? %>
+                              (@project.shared_versions.open.sort.collect {|v| [v.name, v.id]}),
+                              { :include_blank => true })) unless @project.shared_versions.open.empty? %>
 </div>

 <div class="splitcontentright">
Actions #3

Updated by Maxim Krušina about 14 years ago

So it's bug in subtasking plugin?
If so, we have to disable it, because we cannot work correctly with versions...

Actions #4

Updated by Anonymous about 14 years ago

Maxim Krušina wrote:

So it's bug in subtasking plugin?
If so, we have to disable it, because we cannot work correctly with versions...

Yes, if you use the subtask plugin / patch.

But the fix is so trivial - 2 lines. So try to grep your redmine installation "@project.versions.empty" and replace with "@project.shared_versions.open.empty" and you have both - subtasks and shared versions.

Actions #5

Updated by Maxim Krušina about 14 years ago

ANd this fir is for redmine trunk or for plugin code?

Actions #6

Updated by Anonymous about 14 years ago

Maxim Krušina wrote:

ANd this fir is for redmine trunk or for plugin code?

I have it running ( and the patch is against ) redmine_subtask PLUGIN - from http://github.com/hron/redmine_subtasks

Actions #7

Updated by Holger Just almost 14 years ago

  • Status changed from Resolved to Closed
  • Resolution set to Invalid

This does not apply to Redmine anymore. The subtasks plugin is obsolete with the implementation of #443 in trunk.

Actions

Also available in: Atom PDF