]> source.dussan.org Git - redmine.git/commitdiff
shorten long line of lib/redmine/field_format.rb
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Tue, 10 Nov 2020 11:09:46 +0000 (11:09 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Tue, 10 Nov 2020 11:09:46 +0000 (11:09 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@20323 e93f8b46-1217-0410-a6f0-8f06a7374b81

lib/redmine/field_format.rb

index bcf100e3b0e0c04098c6c6b17339edd762a160af..04b4cf9ea4f86bb271392104ca816604aa849cef 100644 (file)
@@ -893,7 +893,9 @@ module Redmine
 
       def query_filter_values(custom_field, query)
         versions = possible_values_records(custom_field, query.project, true)
-        Version.sort_by_status(versions).collect{|s| ["#{s.project.name} - #{s.name}", s.id.to_s, l("version_status_#{s.status}")] }
+        Version.sort_by_status(versions).collect do |s|
+          ["#{s.project.name} - #{s.name}", s.id.to_s, l("version_status_#{s.status}")]
+        end
       end
 
       def possible_values_records(custom_field, object=nil, all_statuses=false)