Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgfyoung <gfyoung17@gmail.com>2016-11-05 10:50:07 +0300
committergfyoung <gfyoung17@gmail.com>2016-11-10 21:54:37 +0300
commit579090c3a0ed1e88ac3cfa0ed9666e195b1fdf19 (patch)
treecf2e977ed387249aaeb7698e290cb6cc4d0ff154 /app/views/groups/milestones
parentf3231d0f634dc1e8bc9d7d69eaba1f660cd26e36 (diff)
Require projects before creating milestone
Diffstat (limited to 'app/views/groups/milestones')
-rw-r--r--app/views/groups/milestones/new.html.haml2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/groups/milestones/new.html.haml b/app/views/groups/milestones/new.html.haml
index 23d438b2aa1..0dfaf743992 100644
--- a/app/views/groups/milestones/new.html.haml
+++ b/app/views/groups/milestones/new.html.haml
@@ -34,7 +34,7 @@
= f.label :projects, "Projects", class: "control-label"
.col-sm-10
= f.collection_select :project_ids, @group.projects.non_archived, :id, :name,
- { selected: @group.projects.non_archived.pluck(:id) }, multiple: true, class: 'select2'
+ { selected: @group.projects.non_archived.pluck(:id) }, required: true, multiple: true, class: 'select2'
.col-md-6
.form-group