Commit 8110f4cf authored by Mark Chao's avatar Mark Chao

Merge branch '9421-fix-author' into 'master'

Fix author on new issues by /clone quickcommand

See merge request gitlab-org/gitlab!49830
parents aeb8c40a 82ec1220
......@@ -48,7 +48,7 @@ module Issues
id: nil,
iid: nil,
project: target_project,
author: original_entity.author,
author: current_user,
assignee_ids: original_entity.assignee_ids
}
......
---
title: Fix author on /clone quickaction usage to be current user
merge_request: 49830
author:
type: fixed
......@@ -74,8 +74,8 @@ RSpec.describe Issues::CloneService do
expect(new_issue.changed?).to be false
end
it 'preserves author' do
expect(new_issue.author).to eq author
it 'sets the current user as author' do
expect(new_issue.author).to eq user
end
it 'creates a new internal id for issue' do
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment