Browse Source

新增:关闭关联疑修新增操作记录

pull/342/head
yystopf 3 years ago
parent
commit
92c4f87d5b
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      app/controllers/pull_requests_controller.rb

+ 3
- 0
app/controllers/pull_requests_controller.rb View File

@@ -236,6 +236,9 @@ class PullRequestsController < ApplicationController
PullAttachedIssue.find_by(issue_id: issue.id, pull_request_id: @pull_request.id).update(fixed: true)
end
# update issue to state 5
issue.issue_participants.create!({participant_type: "edited", participant_id: current_user.id}) unless issue.issue_participants.exists?(participant_type: "edited", participant_id: current_user.id)
journal = issue.journals.create!({user_id: current_user.id})
journal.journal_details.create!({property: "attr", prop_key: "status_id", old_value: issue.status_id, value: 5})
issue.update(status_id: 5)
end



Loading…
Cancel
Save