Skip to content

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

Reload attribute help texts to update previews

Oliver Günther1ccb13b0972c
diff --git a/app/views/attribute_help_texts/edit.html.erb b/app/views/attribute_help_texts/edit.html.erb
index 245d90699bf..a461f4257c8 100644
--- a/app/views/attribute_help_texts/edit.html.erb
+++ b/app/views/attribute_help_texts/edit.html.erb
@@ -43,7 +43,10 @@ See COPYRIGHT and LICENSE files for more details.
<%= labelled_tabular_form_for @attribute_help_text,
as: 'attribute_help_text',
url: { action: :update },
- html: {id: 'attribute_help_text_form'} do |f| %>
+ html: {
+ id: 'attribute_help_text_form',
+ data: { turbo: false } # reload page to update previews
+ } do |f| %>
<%= render partial: 'form', locals: { f: f, editing: true } %>
<%= hidden_field_tag 'attribute_scope', @attribute_help_text.attribute_scope %>
<%= styled_button_tag t(:button_save), class: '-primary -with-icon icon-checkmark' %>