Fix autoloading

pull/7348/head
Oliver Günther 5 years ago committed by Wieland Lindenthal
parent b23250ed60
commit 74a4c3a54f
  1. 1
      modules/bcf/lib/open_project/bcf.rb
  2. 6
      modules/bcf/lib/open_project/bcf/bcf_issue_associated_filter.rb
  3. 4
      modules/bcf/lib/open_project/bcf/engine.rb

@ -2,6 +2,5 @@ module OpenProject
module Bcf module Bcf
require "open_project/bcf/engine" require "open_project/bcf/engine"
require "open_project/bcf/bcf_xml" require "open_project/bcf/bcf_xml"
require "open_project/bcf/bcf_issue_associated_filter"
end end
end end

@ -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

@ -110,10 +110,10 @@ module OpenProject::Bcf
end end
config.to_prepare do config.to_prepare do
WorkPackage::Exporter ::WorkPackage::Exporter
.register_for_list(:bcf, OpenProject::Bcf::BcfXml::Exporter) .register_for_list(:bcf, OpenProject::Bcf::BcfXml::Exporter)
Queries::Register.filter Query, OpenProject::Bcf::BcfIssueAssociatedFilter ::Queries::Register.filter ::Query, OpenProject::Bcf::BcfIssueAssociatedFilter
end end
end end
end end

Loading…
Cancel
Save