]> source.dussan.org Git - redmine.git/commitdiff
fix source indent of app/models/query.rb
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Thu, 17 Sep 2020 15:48:09 +0000 (15:48 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Thu, 17 Sep 2020 15:48:09 +0000 (15:48 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@20039 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/models/query.rb

index 11fbec26b1164294400613ed12e17176fb6a1a41..5f69f56ac24631f65df5245d245861de3d3d9882 100644 (file)
@@ -455,9 +455,9 @@ class Query < ActiveRecord::Base
           case operator_for(field)
           when "=", ">=", "<=", "><"
             if values_for(field).detect do |v|
-                  v.present? &&
-                    (!/\A\d{4}-\d{2}-\d{2}(T\d{2}((:)?\d{2}){0,2}(Z|\d{2}:?\d{2})?)?\z/.match?(v) ||
-                       parse_date(v).nil?)
+                 v.present? &&
+                   (!/\A\d{4}-\d{2}-\d{2}(T\d{2}((:)?\d{2}){0,2}(Z|\d{2}:?\d{2})?)?\z/.match?(v) ||
+                     parse_date(v).nil?)
                end
               add_filter_error(field, :invalid)
             end
@@ -757,7 +757,7 @@ class Query < ActiveRecord::Base
 
     # preserve the column_names order
     cols = (has_default_columns? ? default_columns_names : column_names).collect do |name|
-       available_columns.find {|col| col.name == name}
+      available_columns.find {|col| col.name == name}
     end.compact
     available_columns.select(&:frozen?) | cols
   end