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
remove unneeded reference to lcsd_
ulferts2eddde1931e7
diff --git a/app/helpers/sort_helper.rb b/app/helpers/sort_helper.rbindex d9429563f6e..83330d691ce 100644--- a/app/helpers/sort_helper.rb+++ b/app/helpers/sort_helper.rb@@ -379,9 +379,6 @@ module SortHelperdef find_filter_for_column(column, filter_mapping)col = column.to_s- # Temporarily disabled filters for stages and gates columns for now. Remove this line for #59183- return nil if column.start_with?("lcsd_")-filter_mapping.fetch(col, col)end@@ -500,7 +497,7 @@ module SortHelperdef add_and_remove_column_actions(menu, column, selected_columns, content_args:, allowed_params: nil, **html_options)config_view_modal_link = configure_view_modal_project_queries_path(projects_query_params)- all_columns_except_this = selected_columns.reject { _1 == column }+ all_columns_except_this = selected_columns.reject { it == column }rm_column_link = build_columns_link(all_columns_except_this, allowed_params:, **html_options)menu.with_item(**menu_options(label: t(:label_add_column),diff --git a/app/models/project/phase.rb b/app/models/project/phase.rbindex eac50d812e3..6f1d3ee08da 100644--- a/app/models/project/phase.rb+++ b/app/models/project/phase.rb@@ -80,9 +80,4 @@ class Project::Phase < ApplicationRecorddef validate_date_rangeerrors.add(:date_range, :start_date_must_be_before_end_date) if range_set? && (start_date > end_date)end-- def column_name- # The id of the associated definition is relevant for displaying the correct column headers- "lcsd_#{definition_id}"- endenddiff --git a/app/models/project/phase_definition.rb b/app/models/project/phase_definition.rbindex dd8765b1f49..73e5205f4eb 100644--- a/app/models/project/phase_definition.rb+++ b/app/models/project/phase_definition.rb@@ -47,9 +47,4 @@ class Project::PhaseDefinition < ApplicationRecorddefault_scope { order(:position) }scopes :with_project_count-- def column_name- # TODO: rename- "lcsd_#{id}"- endenddiff --git a/spec/helpers/sort_helper_spec.rb b/spec/helpers/sort_helper_spec.rbindex 3d367ff843f..527971b97f4 100644--- a/spec/helpers/sort_helper_spec.rb+++ b/spec/helpers/sort_helper_spec.rb@@ -429,15 +429,15 @@ RSpec.describe SortHelper doendcontext "with a project phase column" do- let(:life_cycle_step) { create(:project_phase_definition) }- let(:life_cycle_column) { Queries::Projects::Selects::ProjectPhase.new("project_phase_#{life_cycle_step.id}") }+ let(:project_phase_definition) { create(:project_phase_definition) }+ let(:life_cycle_column) { Queries::Projects::Selects::ProjectPhase.new("project_phase_#{project_phase_definition.id}") }- let(:options) { { caption: life_cycle_step.name } }+ let(:options) { { caption: project_phase_definition.name } }subject(:output) do# Not setting any filter column mappings here, so for other column types, this should use the default filterhelper.sort_header_with_action_menu(life_cycle_column,- %W[name project_phase_#{life_cycle_step.id}], {}, **options)+ %W[name project_phase_#{project_phase_definition.id}], {}, **options)endit "never offers a filter by action" do