OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
Run `rubocop -a` on modules/gantt
Aaron Contreras530fffb85a90
diff --git a/modules/gantt/app/controllers/gantt/menus_controller.rb b/modules/gantt/app/controllers/gantt/menus_controller.rbindex 62a19a5d59a..8596abbce1f 100644--- a/modules/gantt/app/controllers/gantt/menus_controller.rb+++ b/modules/gantt/app/controllers/gantt/menus_controller.rb@@ -89,12 +89,10 @@ module Gantt.where('views.type' => 'gantt')if @project.present?- base_query = base_query.where('queries.project_id' => @project.id)+ base_query.where('queries.project_id' => @project.id)else- base_query = base_query.where('queries.project_id' => nil)+ base_query.where('queries.project_id' => nil)end-- base_queryenddef menu_item(query_params, name)diff --git a/modules/gantt/app/services/gantt/default_query_generator_service.rb b/modules/gantt/app/services/gantt/default_query_generator_service.rbindex 17075d7408c..4d4d751537d 100644--- a/modules/gantt/app/services/gantt/default_query_generator_service.rb+++ b/modules/gantt/app/services/gantt/default_query_generator_service.rb@@ -91,10 +91,10 @@ module ::Gantt.parse(Gantt::DefaultQueryGeneratorService::DEFAULT_PARAMS)default_with_filter['c'] = if project.present?- Gantt::DefaultQueryGeneratorService::PROJECT_DEFAULT_COLUMNS- else- Gantt::DefaultQueryGeneratorService::GLOBAL_DEFAULT_COLUMNS- end+ Gantt::DefaultQueryGeneratorService::PROJECT_DEFAULT_COLUMNS+ else+ Gantt::DefaultQueryGeneratorService::GLOBAL_DEFAULT_COLUMNS+ enddefault_with_filterend