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
Make date picker data behave as the other fields
Dombi Attila9913d09c5d86
diff --git a/lib/tabular_form_builder.rb b/lib/tabular_form_builder.rbindex 5eedb98e770..32c550393eb 100644--- a/lib/tabular_form_builder.rb+++ b/lib/tabular_form_builder.rb@@ -96,8 +96,8 @@ class TabularFormBuilder < ActionView::Helpers::FormBuilderinputs = { value: @object.public_send(field), id: field_id(field), name: field_name(field) }- if input_options[:'remote-field-key']- inputs['remote-field-key'] = input_options[:'remote-field-key']+ if options.dig(:data, :'remote-field-key')+ inputs['remote-field-key'] = options.dig(:data, :'remote-field-key')endlabel = label_for_field(field, label_options)diff --git a/modules/costs/app/views/costlog/edit.html.erb b/modules/costs/app/views/costlog/edit.html.erbindex 7dd91b69397..a69199582d9 100644--- a/modules/costs/app/views/costlog/edit.html.erb+++ b/modules/costs/app/views/costlog/edit.html.erb@@ -62,7 +62,7 @@ See COPYRIGHT and LICENSE files for more details.<div class="form--field -required"><%= f.date_picker :spent_on,required: true,- :'remote-field-key' => 'fixed_date' %>+ data: { :'remote-field-key' => 'fixed_date' } %><label for="cost_entry_spent_on" class="hidden-for-sighted"><%= t(:label_date) %> <%= t(:text_hint_date_format) %></label></div><% if User.current.allowed_to? :log_costs, @project %>