Fix unapproved unassigned MR email erroring out
Fix https://gitlab.com/gitlab-org/gitlab-ee/issues/3092 Conflicts: ee/app/views/notify/unapproved_merge_request_email.html.haml spec/mailers/notify_spec.rb
This commit is contained in:
parent
a1cde68d20
commit
dc45cc5411
1 changed files with 1 additions and 1 deletions
|
@ -65,7 +65,7 @@ class NotifyPreview < ActionMailer::Preview
|
|||
end
|
||||
|
||||
def merge_request
|
||||
@merge_request ||= project.merge_requests.find_by(source_branch: 'master', target_branch: 'feature')
|
||||
@merge_request ||= project.merge_requests.first
|
||||
end
|
||||
|
||||
def user
|
||||
|
|
Loading…
Reference in a new issue