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
[#64470] Fix missing help text for "Subproject of"
Alexander Brandon Coles3f5dcafb46b2
diff --git a/app/components/open_project/common/attribute_label_component.rb b/app/components/open_project/common/attribute_label_component.rbindex dbc84503cc0..d56673f5a59 100644--- a/app/components/open_project/common/attribute_label_component.rb+++ b/app/components/open_project/common/attribute_label_component.rb@@ -50,7 +50,7 @@ module OpenProject@help_text = ::AttributeHelpText.for(model)&.cached(current_user)- &.[](attribute.to_s)+ &.[](AttributeHelpText.normalize_value_for(:attribute_name, attribute))endendenddiff --git a/spec/components/open_project/common/attribute_label_component_spec.rb b/spec/components/open_project/common/attribute_label_component_spec.rbindex a42c0b3e1b1..4c0b58602f9 100644--- a/spec/components/open_project/common/attribute_label_component_spec.rb+++ b/spec/components/open_project/common/attribute_label_component_spec.rb@@ -77,7 +77,18 @@ RSpec.describe OpenProject::Common::AttributeLabelComponent, type: :component doendend- context "with help text" do+ context "with help text on an attribute" do+ let!(:help_text) { create(:project_help_text, attribute_name: attribute) }++ it_behaves_like "component renders"++ it "renders help text" do+ expect(subject).to have_element class: "op-attribute-help-text"+ end+ end++ context "with help text on an association" do+ let(:attribute) { "parent_id" }let!(:help_text) { create(:project_help_text, attribute_name: attribute) }it_behaves_like "component renders"