修复:里程碑关闭,编辑issue,里程碑被清空的情况
This commit is contained in:
parent
196d3b31a1
commit
85f9f636a2
|
@ -268,13 +268,14 @@ module ProjectsHelper
|
|||
grouped = Hash.new {|h,k| h[k] = []}
|
||||
grouped[project_name] << ["请选择里程碑", 0]
|
||||
|
||||
=begin
|
||||
unless selected.nil?
|
||||
if (params[:action] == "show" ) && Version.find(selected.id).status == "closed"
|
||||
version_name = Version.find(selected.id).name
|
||||
grouped[project_name] << [version_name, selected.id]
|
||||
end
|
||||
end
|
||||
|
||||
=end
|
||||
|
||||
versions.each do |version|
|
||||
grouped[version.project.name] << [version.name, version.id]
|
||||
|
|
|
@ -854,7 +854,8 @@ class Issue < ActiveRecord::Base
|
|||
return @assignable_versions if @assignable_versions
|
||||
|
||||
# versions = project.shared_versions.open.all
|
||||
versions = Version.where(:project_id => project.id, :status => "open").order("created_on desc")
|
||||
# versions = Version.where(:project_id => project.id, :status => "open").order("created_on desc")
|
||||
versions = Version.where(:project_id => project.id).order("created_on desc")
|
||||
if fixed_version
|
||||
if fixed_version_id_changed?
|
||||
# nothing to do
|
||||
|
|
Loading…
Reference in New Issue