]> source.dussan.org Git - redmine.git/commitdiff
add space after comma to app/models/issue.rb
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sat, 11 Jul 2020 16:21:45 +0000 (16:21 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sat, 11 Jul 2020 16:21:45 +0000 (16:21 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@19888 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/models/issue.rb

index 9792f4916359d56d4facd2bb3091f1b75ebbd19c..32acc9c60cd60957fb22e4268deeecd983f62d6f 100644 (file)
@@ -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|