@ -49,5 +49,9 @@ class Queries::WorkPackages::Filter < Queries::Filter
watcher_id::list
watcher_id::list
)
)
validates:field,inclusion:{in:self.filter_types_by_field.keys,message:"%(value) is not a valid filter"},unless:Proc.new{|filter|filter.field.to_s.starts_with?('cf_')}
validates:field,inclusion:{in:Proc.new{self.filter_types_by_field.keys},message:"%(value) is not a valid filter"},unless:Proc.new{|filter|filter.field.to_s.starts_with?('cf_')}