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

also add maxlength to the input field

Klaus Zandersf90df3e580eb
diff --git a/modules/costs/app/components/time_entries/comments_form.rb b/modules/costs/app/components/time_entries/comments_form.rb
index 6a6a0afb757..0b8d68e3b47 100644
--- a/modules/costs/app/components/time_entries/comments_form.rb
+++ b/modules/costs/app/components/time_entries/comments_form.rb
@@ -31,7 +31,7 @@
module TimeEntries
class CommentsForm < ApplicationForm
form do |f|
- f.text_area name: :comments, label: TimeEntry.human_attribute_name(:comments)
+ f.text_area name: :comments, label: TimeEntry.human_attribute_name(:comments), maxlength: 255
end
end
end