Browse Source

fix: copy issue author id

tags/v3.1.5
vilet.yy 5 years ago
parent
commit
2a72fc56a4
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      app/controllers/issues_controller.rb

+ 1
- 0
app/controllers/issues_controller.rb View File

@@ -316,6 +316,7 @@ class IssuesController < ApplicationController

def copy
@new_issue = @issue.dup
@new_issue.author_id = current_user.id
if @new_issue.save
issue_tags = @issue.issue_tags.pluck(:id)
if issue_tags.present?


Loading…
Cancel
Save