fix: change issues priority id default value
This commit is contained in:
parent
c0a4f8f4ec
commit
22f3371090
|
@ -288,7 +288,7 @@ class PullRequestsController < ApplicationController
|
||||||
assigned_to_id: params[:assigned_to_id],
|
assigned_to_id: params[:assigned_to_id],
|
||||||
fixed_version_id: params[:fixed_version_id],
|
fixed_version_id: params[:fixed_version_id],
|
||||||
issue_tags_value: params[:issue_tag_ids].present? ? params[:issue_tag_ids].join(",") : "",
|
issue_tags_value: params[:issue_tag_ids].present? ? params[:issue_tag_ids].join(",") : "",
|
||||||
priority_id: params[:priority_id] || "2",
|
priority_id: params[:priority_id],
|
||||||
issue_classify: "pull_request",
|
issue_classify: "pull_request",
|
||||||
issue_type: params[:issue_type] || "1",
|
issue_type: params[:issue_type] || "1",
|
||||||
tracker_id: 2,
|
tracker_id: 2,
|
||||||
|
|
|
@ -340,7 +340,7 @@ class RepositoriesController < ApplicationController
|
||||||
issue_type: "1",
|
issue_type: "1",
|
||||||
tracker_id: 2,
|
tracker_id: 2,
|
||||||
status_id: 1,
|
status_id: 1,
|
||||||
priority_id: params[:priority_id] || "2"
|
priority_id: params[:priority_id]
|
||||||
}
|
}
|
||||||
@pull_issue = Issue.new(issue_params)
|
@pull_issue = Issue.new(issue_params)
|
||||||
if @pull_issue.save!
|
if @pull_issue.save!
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
# category_id :integer
|
# category_id :integer
|
||||||
# status_id :integer not null
|
# status_id :integer not null
|
||||||
# assigned_to_id :integer
|
# assigned_to_id :integer
|
||||||
# priority_id :integer not null
|
# priority_id :integer
|
||||||
# fixed_version_id :integer
|
# fixed_version_id :integer
|
||||||
# author_id :integer not null
|
# author_id :integer not null
|
||||||
# created_on :datetime
|
# created_on :datetime
|
||||||
|
|
|
@ -0,0 +1,5 @@
|
||||||
|
class ChangeIssuesPriorityIdDefault < ActiveRecord::Migration[5.2]
|
||||||
|
def change
|
||||||
|
change_column_null :issues, :priority_id, true
|
||||||
|
end
|
||||||
|
end
|
Loading…
Reference in New Issue