diff --git a/app/models/cost_query/operator.rb b/app/models/cost_query/operator.rb index 0dc4adbdcb..0db8bfa12c 100644 --- a/app/models/cost_query/operator.rb +++ b/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 " :label_less_or_equal do def modify(query, field, value)