mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-22 20:55:46 +08:00
修复编号:45283 易修标题过长导致排版问题
This commit is contained in:
11
app/forms/issues/create_form.rb
Normal file
11
app/forms/issues/create_form.rb
Normal file
@@ -0,0 +1,11 @@
|
||||
class Issues::CreateForm
|
||||
include ActiveModel::Model
|
||||
|
||||
attr_accessor :subject,:description,:is_private,:assigned_to_id,:tracker_id,:status_id,:priority_id,:fixed_version_id,:start_date,:due_date,:estimated_hours,:done_ratio,:issue_type,:token,:issue_tags_value,:closed_on,:branch_name,:issue_classify,:author_id,:project_id
|
||||
|
||||
validates :subject, presence: { message: "不能为空" }
|
||||
|
||||
validates :subject, length: { maximum: 80, too_long: "不能超过80个字符" }
|
||||
|
||||
|
||||
end
|
||||
10
app/forms/issues/update_form.rb
Normal file
10
app/forms/issues/update_form.rb
Normal file
@@ -0,0 +1,10 @@
|
||||
class Issues::UpdateForm
|
||||
include ActiveModel::Model
|
||||
|
||||
attr_accessor :subject,:description,:is_private,:assigned_to_id,:tracker_id,:status_id,:priority_id,:fixed_version_id,:start_date,:due_date,:estimated_hours,:done_ratio,:issue_type,:token,:issue_tags_value,:closed_on,:branch_name,:issue_classify,:author_id,:project_id
|
||||
|
||||
validates :subject, presence: { message: "不能为空" }
|
||||
|
||||
validates :subject, length: { maximum: 80, too_long: "不能超过80个字符" }
|
||||
|
||||
end
|
||||
Reference in New Issue
Block a user