diff options
author | Yorick Peterse <yorickpeterse@gmail.com> | 2019-03-04 18:37:15 +0000 |
---|---|---|
committer | Yorick Peterse <yorickpeterse@gmail.com> | 2019-03-04 18:37:15 +0000 |
commit | 025015048f7eaad29ee7816c6040fb3e0c06eb8d (patch) | |
tree | 50d713b293ffd0dee44b715dd9c12621810f8fa5 /app/services/issues/build_service.rb | |
parent | 6683298fe6d85bb0785906723663482798418907 (diff) | |
parent | 30ab6ee416783cd9481085f021603383eeb4f317 (diff) | |
download | gitlab-ce-025015048f7eaad29ee7816c6040fb3e0c06eb8d.tar.gz |
Merge branch 'security-2773-milestones-fix' into 'master'
[master] Check issue milestone availability
See merge request gitlab/gitlabhq!2788
Diffstat (limited to 'app/services/issues/build_service.rb')
-rw-r--r-- | app/services/issues/build_service.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/app/services/issues/build_service.rb b/app/services/issues/build_service.rb index 3fb2c2b3007..61615ac2058 100644 --- a/app/services/issues/build_service.rb +++ b/app/services/issues/build_service.rb @@ -6,7 +6,9 @@ module Issues def execute filter_resolve_discussion_params - @issue = project.issues.new(issue_params) + @issue = project.issues.new(issue_params).tap do |issue| + ensure_milestone_available(issue) + end end def issue_params_with_info_from_discussions |