From f3f333a906341685995f044f4d72ee38b908279f Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Sat, 11 Jul 2020 16:21:45 +0000 Subject: [PATCH] add space after comma to app/models/issue.rb git-svn-id: http://svn.redmine.org/redmine/trunk@19888 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/models/issue.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/models/issue.rb b/app/models/issue.rb index 9792f4916..32acc9c60 100644 --- a/app/models/issue.rb +++ b/app/models/issue.rb @@ -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| -- 2.39.5