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

Fix focus when remaining work field is disabled

Christophe Bliarda600bd8e5635
diff --git a/app/forms/work_packages/pre_14_4_progress_form.rb b/app/forms/work_packages/pre_14_4_progress_form.rb
index c0e12f0faa7..2127f3fdb34 100644
--- a/app/forms/work_packages/pre_14_4_progress_form.rb
+++ b/app/forms/work_packages/pre_14_4_progress_form.rb
@@ -134,7 +134,11 @@ class WorkPackages::Pre144ProgressForm < ApplicationForm
end
def focused_field_by_selection(field)
- field
+ if field == :remaining_hours && disabled_remaining_work_field?
+ :estimated_hours
+ else
+ field
+ end
end
def render_text_field(group,