give operators o,c some labels for translation

pull/6827/head
Philipp Tessenow 14 years ago
parent f202ffbe45
commit dd6b49b4de
  1. 4
      app/models/cost_query/operator.rb

@ -1,6 +1,6 @@
class CostQuery::Operator < Report::Operator class CostQuery::Operator < Report::Operator
# Operators from Redmine # Operators from Redmine
new "c", :arity => 0 do new "c", :arity => 0, :label => :label_closed do
def modify(query, field, *values) def modify(query, field, *values)
raise "wrong field" if field.to_s.split('.').last != "status_id" raise "wrong field" if field.to_s.split('.').last != "status_id"
query.where "(#{IssueStatus.table_name}.is_closed = #{quoted_true})" query.where "(#{IssueStatus.table_name}.is_closed = #{quoted_true})"
@ -8,7 +8,7 @@ class CostQuery::Operator < Report::Operator
end end
end end
new "o", :arity => 0 do new "o", :arity => 0, :label => :label_open do
def modify(query, field, *values) def modify(query, field, *values)
raise "wrong field" if field.to_s.split('.').last != "status_id" raise "wrong field" if field.to_s.split('.').last != "status_id"
query.where "(#{IssueStatus.table_name}.is_closed = #{quoted_false})" query.where "(#{IssueStatus.table_name}.is_closed = #{quoted_false})"

Loading…
Cancel
Save