forked from Trustie/forgeplus
更改:导入工作项默认创建者
This commit is contained in:
parent
f1bf41c7f6
commit
ba2a76de8c
|
@ -177,7 +177,7 @@ class Api::Pm::IssuesController < Api::Pm::BaseController
|
|||
issue.fake_id = row[0]
|
||||
issue.subject = row[1]
|
||||
issue.description = row[2]
|
||||
author = User.find_by(login: row[3])
|
||||
author = User.find_by(login: row[3]) || User.where(admin: true).first
|
||||
issue.user = author
|
||||
issue.created_on = row[4]
|
||||
changer = User.find_by(login: row[5])
|
||||
|
|
Loading…
Reference in New Issue