Skip to content

Commit 97d1c8e

Browse files
authored
Merge pull request #22498 from opf/bug/73398-long-text-project-attribute-is-showing-cf-id-on-click
[73398] Long Text Project Attribute is showing CF ID on click
2 parents 743ef41 + 5855747 commit 97d1c8e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/components/open_project/common/inplace_edit_fields/display_fields/rich_text_area_component.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,9 @@ def input_specific_call
4343
classes: "op-uc-container op-uc-container_reduced-headings -multiline")) do
4444
if field_value.present?
4545
if truncated
46+
name = custom_field? ? custom_field.name : attribute.to_s.humanize
4647
render OpenProject::Common::AttributeComponent.new("#{attribute}-truncated-display-field",
47-
attribute,
48+
name,
4849
field_value,
4950
lines: 3)
5051
else

0 commit comments

Comments
 (0)