fixed arity of y- and n-operator

git-svn-id: https://dev.finn.de/svn/cockpit/branches/reporting_merge@1436 7926756e-e54e-46e6-9721-ed318f58905e
pull/6827/head
p.tessenow 15 years ago
parent 2c16c783fb
commit af08716025
  1. 4
      app/models/cost_query/operator.rb

@ -146,8 +146,8 @@ class CostQuery::Operator
end
new "0", :label => :label_none, :where_clause => "%s = 0"
new "y", :label => :label_yes, :where_clause => "%s IS NOT NULL"
new "n", :label => :label_no, :where_clause => "%s IS NULL"
new "y", :label => :label_yes, :arity => 0, :where_clause => "%s IS NOT NULL"
new "n", :label => :label_no, :arity => 0, :where_clause => "%s IS NULL"
new "<d", :label => :label_less_or_equal do
def modify(query, field, value)

Loading…
Cancel
Save