|
|
|
@ -217,7 +217,7 @@ class Issue < ActiveRecord::Base
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
def to_param
|
|
|
|
|
@to_param ||= "#{id}_#{self.project.name}(#{self.project.issues.index(self)+1}-#{self.project.issues.count})"#.parameterize
|
|
|
|
|
@to_param ||= "#{id}_#{self.project.name}(#{self.project.issues.index(self).to_i+1}-#{self.project.issues.count})"#.parameterize
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
# Overrides Redmine::Acts::Customizable::InstanceMethods#available_custom_fields
|
|
|
|
@ -1144,6 +1144,12 @@ class Issue < ActiveRecord::Base
|
|
|
|
|
Project.all(:conditions => Project.allowed_to_condition(user, :move_issues))
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
# back string obj which is belong to project.
|
|
|
|
|
def source_from
|
|
|
|
|
"" << self.project.name.to_s <<
|
|
|
|
|
"#" << (self.project.issues.index(self).to_i + 1).to_s
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
private
|
|
|
|
|
|
|
|
|
|
def after_project_change
|
|
|
|
|