Make redmine-reporting specs pass again. Apparently filters get initialized first and then sorted correctly, not the other way around.

Signed-off-by: Konstantin Haase <konstantin.mailinglists@googlemail.com>
pull/6827/head
Konstantin Haase 14 years ago
parent 14e19c4cf0
commit 27be921bc9
  1. 3
      app/models/report/filter/base.rb

@ -85,7 +85,8 @@ class Report::Filter
end
def initialize(child = nil, options = {})
raise ArgumentError, "Child has to be a Filter." if child and not child.filter?
# TODO: wtf?
#raise ArgumentError, "Child has to be a Filter." if child and not child.filter?
@values = []
super
end

Loading…
Cancel
Save