mirror of
https://github.com/meineerde/redmine.git
synced 2025-12-26 18:31:14 +00:00
add space after comma to app/models/issue.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@19888 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
2f478664f7
commit
f3f333a906
@ -274,7 +274,7 @@ class Issue < ActiveRecord::Base
|
||||
def copy_from(arg, options={})
|
||||
issue = arg.is_a?(Issue) ? arg : Issue.visible.find(arg)
|
||||
self.attributes = issue.attributes.dup.except("id", "root_id", "parent_id", "lft", "rgt", "created_on", "updated_on", "status_id", "closed_on")
|
||||
self.custom_field_values = issue.custom_field_values.inject({}) {|h,v| h[v.custom_field_id] = v.value; h}
|
||||
self.custom_field_values = issue.custom_field_values.inject({}) {|h, v| h[v.custom_field_id] = v.value; h}
|
||||
if options[:keep_status]
|
||||
self.status = issue.status
|
||||
end
|
||||
@ -869,7 +869,7 @@ class Issue < ActiveRecord::Base
|
||||
preload(:user => :email_address).
|
||||
reorder(:created_on, :id).to_a
|
||||
|
||||
result.each_with_index {|j,i| j.indice = i+1}
|
||||
result.each_with_index {|j, i| j.indice = i + 1}
|
||||
|
||||
unless user.allowed_to?(:view_private_notes, project)
|
||||
result.select! do |journal|
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user