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

Avoid disabled hidden inputs that generates the not focusable error

Aleix Suau4a334f0b78fa
diff --git a/modules/costs/app/views/cost_types/_rate.html.erb b/modules/costs/app/views/cost_types/_rate.html.erb
index 5a1fd6e2730..eca57fa07f4 100644
--- a/modules/costs/app/views/cost_types/_rate.html.erb
+++ b/modules/costs/app/views/cost_types/_rate.html.erb
@@ -53,7 +53,7 @@ See docs/COPYRIGHT.rdoc for more details.
<%= rate_form.text_field :valid_from,
class: 'date costs-date-picker -augmented-datepicker',
index: id_or_index,
- required: true %>
+ required: templated ? false : true %>
</td>
<td class="currency">
<span class="inline-label">
@@ -62,7 +62,7 @@ See docs/COPYRIGHT.rdoc for more details.
size: 7,
index: id_or_index,
value: rate.rate ? rate.rate.round(2) : "",
- required: true %>
+ required: templated ? false : true %>
<span class="form-label">
<%= Setting.plugin_costs['costs_currency'] %>
</span>