Merge branch 'master' of https://dev.finn.de/git/redmine-reporting
commit
c17550ab1f
@ -1,3 +0,0 @@ |
|||||||
class CostQuery::Filter::Base < Report::Filter::Base |
|
||||||
include CostQuery::QueryUtils |
|
||||||
end |
|
@ -1,25 +0,0 @@ |
|||||||
module CostQuery::Filter |
|
||||||
class CustomField < Base |
|
||||||
extend CostQuery::CustomFieldMixin |
|
||||||
|
|
||||||
on_prepare do |
|
||||||
applies_for :label_issue_attributes |
|
||||||
# redmine internals just suck |
|
||||||
case custom_field.field_format |
|
||||||
when 'string', 'text' then use :string_operators |
|
||||||
when 'list' then use :null_operators |
|
||||||
when 'date' then use :time_operators |
|
||||||
when 'int', 'float' then use :integer_operators |
|
||||||
when 'bool' |
|
||||||
@possible_values = [['true', 't'], ['false', 'f']] |
|
||||||
use :null_operators |
|
||||||
else |
|
||||||
fail "cannot handle #{custom_field.field_format.inspect}" |
|
||||||
end |
|
||||||
end |
|
||||||
|
|
||||||
def self.available_values(*) |
|
||||||
@possible_values || custom_field.possible_values |
|
||||||
end |
|
||||||
end |
|
||||||
end |
|
@ -1,3 +0,0 @@ |
|||||||
class CostQuery::GroupBy::Base < Report::GroupBy::Base |
|
||||||
include CostQuery::QueryUtils |
|
||||||
end |
|
@ -1,7 +0,0 @@ |
|||||||
module CostQuery::GroupBy |
|
||||||
class CustomField < Base |
|
||||||
applies_for :label_issue_attributes |
|
||||||
extend CostQuery::CustomFieldMixin |
|
||||||
on_prepare { group_fields table_name } |
|
||||||
end |
|
||||||
end |
|
@ -1,3 +1 @@ |
|||||||
class CostQuery::Table < Report::Table |
class CostQuery::Table < Report::Table; end |
||||||
include CostQuery::QueryUtils |
|
||||||
end |
|
||||||
|
Loading…
Reference in new issue