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

Add index to cost_types rates

Dombi Attila93b50ebac014
diff --git a/modules/costs/app/views/cost_types/_rate.html.erb b/modules/costs/app/views/cost_types/_rate.html.erb
index ee1078b7eaa..d5a53035bb8 100644
--- a/modules/costs/app/views/cost_types/_rate.html.erb
+++ b/modules/costs/app/views/cost_types/_rate.html.erb
@@ -50,7 +50,8 @@ See COPYRIGHT and LICENSE files for more details.
<td class="-no-ellipsis">
<label class="hidden-for-sighted" for="<%= "#{id_prefix}_valid_from" %>"><%= Rate.human_attribute_name(:valid_from) %></label>
<%= rate_form.date_picker :valid_from,
- class: 'date costs-date-picker',
+ index: id_or_index,
+ class: 'date costs-date-picker op-datepicker-modal_fill_space',
no_field_container: true,
no_label: true,
required: templated ? false : true %>