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
no need to pass format value explicitly, it is set through the format select
Ivan Kuchinf190bf1b7b0c
diff --git a/app/views/admin/settings/project_custom_fields/edit.html.erb b/app/views/admin/settings/project_custom_fields/edit.html.erbindex 6d078413f51..7decbc7ffdd 100644--- a/app/views/admin/settings/project_custom_fields/edit.html.erb+++ b/app/views/admin/settings/project_custom_fields/edit.html.erb@@ -28,10 +28,7 @@ See COPYRIGHT and LICENSE files for more details.++#%><% html_title t(:label_administration), t("settings.project_attributes.heading"), @custom_field.name %>-<% content_controller 'admin--custom-fields',- dynamic: true,- 'admin--custom-fields-format-value': @custom_field.field_format-%>+<% content_controller 'admin--custom-fields', dynamic: true %><% local_assigns[:additional_breadcrumb] = @custom_field.name %>diff --git a/app/views/admin/settings/project_custom_fields/new.html.erb b/app/views/admin/settings/project_custom_fields/new.html.erbindex 92fd5270f35..9214b04f513 100644--- a/app/views/admin/settings/project_custom_fields/new.html.erb+++ b/app/views/admin/settings/project_custom_fields/new.html.erb@@ -26,10 +26,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.See COPYRIGHT and LICENSE files for more details.++#%>-<% content_controller 'admin--custom-fields',- dynamic: true,- 'admin--custom-fields-format-value': @custom_field.field_format-%>+<% content_controller 'admin--custom-fields', dynamic: true %><% html_title t(:label_administration), t("settings.project_attributes.heading"), t('settings.project_attributes.new.heading') %><% local_assigns[:additional_breadcrumb] = t('settings.project_attributes.new.heading') %>diff --git a/app/views/custom_fields/edit.html.erb b/app/views/custom_fields/edit.html.erbindex 9281171675d..db86839e2bd 100644--- a/app/views/custom_fields/edit.html.erb+++ b/app/views/custom_fields/edit.html.erb@@ -27,10 +27,7 @@ See COPYRIGHT and LICENSE files for more details.++#%>-<% content_controller 'admin--custom-fields',- dynamic: true,- 'admin--custom-fields-format-value': @custom_field.field_format-%>+<% content_controller 'admin--custom-fields', dynamic: true %><% html_title t(:label_administration), "#{t(:label_edit)} #{CustomField.model_name.human} #{h @custom_field.name}" %>diff --git a/app/views/custom_fields/new.html.erb b/app/views/custom_fields/new.html.erbindex 38820445911..47f09175111 100644--- a/app/views/custom_fields/new.html.erb+++ b/app/views/custom_fields/new.html.erb@@ -27,10 +27,7 @@ See COPYRIGHT and LICENSE files for more details.++#%>-<% content_controller 'admin--custom-fields',- dynamic: true,- 'admin--custom-fields-format-value': @custom_field.field_format-%>+<% content_controller 'admin--custom-fields', dynamic: true %><% html_title t(:label_administration), t(:label_custom_field_new) %><% local_assigns[:additional_breadcrumb] = link_to(I18n.t(@custom_field.type_name), custom_fields_path(tab: @custom_field.type)),diff --git a/frontend/src/stimulus/controllers/dynamic/admin/custom-fields.controller.ts b/frontend/src/stimulus/controllers/dynamic/admin/custom-fields.controller.tsindex 6355e9e0262..e742ebff058 100644--- a/frontend/src/stimulus/controllers/dynamic/admin/custom-fields.controller.ts+++ b/frontend/src/stimulus/controllers/dynamic/admin/custom-fields.controller.ts@@ -49,11 +49,6 @@ export default class CustomFieldsController extends Controller {'customOptionDefaults',];- static values = {- format: String,- };-- declare readonly formatValue:string;declare readonly formatTarget:HTMLInputElement;declare readonly dragContainerTarget:HTMLElement;declare readonly hasDragContainerTarget:boolean;@@ -79,7 +74,7 @@ export default class CustomFieldsController extends Controller {this.setupDragAndDrop();}- this.toggleFormat(this.formatValue);+ this.formatChanged();}activate(elements:HTMLElement[], active = true) {