From af08716025de26eda9c0f74e1ec8796ce431ea09 Mon Sep 17 00:00:00 2001
From: "p.tessenow"
Date: Fri, 16 Jul 2010 09:35:45 +0000
Subject: [PATCH] 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
---
app/models/cost_query/operator.rb | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
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)