|
|
@ -29,7 +29,7 @@ |
|
|
|
#++ |
|
|
|
#++ |
|
|
|
|
|
|
|
|
|
|
|
module ::OpenProject::Bcf |
|
|
|
module ::OpenProject::Bcf |
|
|
|
class ::BcfIssueAssociatedFilter < ::Queries::WorkPackages::Filter::WorkPackageFilter |
|
|
|
class BcfIssueAssociatedFilter < ::Queries::WorkPackages::Filter::WorkPackageFilter |
|
|
|
attr_reader :join_table_suffix |
|
|
|
attr_reader :join_table_suffix |
|
|
|
|
|
|
|
|
|
|
|
def type |
|
|
|
def type |
|
|
@ -45,9 +45,9 @@ module ::OpenProject::Bcf |
|
|
|
|
|
|
|
|
|
|
|
def where |
|
|
|
def where |
|
|
|
if associated? |
|
|
|
if associated? |
|
|
|
Queries::Operators::All.sql_for_field(values, ::Bcf::Issue.table_name, 'id') |
|
|
|
::Queries::Operators::All.sql_for_field(values, ::Bcf::Issue.table_name, 'id') |
|
|
|
elsif not_associated? |
|
|
|
elsif not_associated? |
|
|
|
Queries::Operators::None.sql_for_field(values, ::Bcf::Issue.table_name, 'id') |
|
|
|
::Queries::Operators::None.sql_for_field(values, ::Bcf::Issue.table_name, 'id') |
|
|
|
else |
|
|
|
else |
|
|
|
raise 'Unsupported operator or value' |
|
|
|
raise 'Unsupported operator or value' |
|
|
|
end |
|
|
|
end |
|
|
|