fixed bug in argument_count of operators for w/<t+ operators

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

@ -39,7 +39,7 @@ class CostQuery::Operator
end
end
new "w" do
new "w", :arg_count => 0 do
def modify(query, field, offset = nil)
offset ||= 0
from = Time.now.at_beginning_of_week - ((l(:general_first_day_of_week).to_i % 7) + 1).days
@ -106,7 +106,7 @@ class CostQuery::Operator
end
end
new "<t+", :arg_count => 0 do
new "<t+" do
include DateRange
def modify(query, field, value)
super query, field, 0, value.to_i

Loading…
Cancel
Save