diff options
author | Douwe Maan <douwe@gitlab.com> | 2015-12-04 16:48:38 +0000 |
---|---|---|
committer | Douwe Maan <douwe@gitlab.com> | 2015-12-04 16:48:38 +0000 |
commit | eafa55f105e0cdbe902df7f10f7924d6b90cf74e (patch) | |
tree | 54a56192cc77530d85b4dc4c7d472fe4d25b6b76 | |
parent | 238ca3e472a67d319521daa5aeab6455b4740cdb (diff) | |
parent | 253301bb47d14494ea45230aeb682a9b7dffd5bb (diff) | |
download | gitlab-ce-eafa55f105e0cdbe902df7f10f7924d6b90cf74e.tar.gz |
Merge branch 'make-current-user-first-in-dropdown' into 'master'
Make current user the first user in assignee dropdown in issues detail page
Closes #3679
See merge request !1913
-rw-r--r-- | CHANGELOG | 1 | ||||
-rw-r--r-- | app/views/shared/issuable/_context.html.haml | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/CHANGELOG b/CHANGELOG index 58a0a3c8944..93d59966873 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -17,6 +17,7 @@ v 8.2.2 - Fix: Raw private snippets access workflow - Prevent "413 Request entity too large" errors when pushing large files with LFS - Fix invalid links within projects dashboard header + - Make current user the first user in assignee dropdown in issues detail page (Stan Hu) v 8.2.1 - Forcefully update builds that didn't want to update with state machine diff --git a/app/views/shared/issuable/_context.html.haml b/app/views/shared/issuable/_context.html.haml index f44b439a843..2aa46662613 100644 --- a/app/views/shared/issuable/_context.html.haml +++ b/app/views/shared/issuable/_context.html.haml @@ -9,7 +9,7 @@ none .issuable-context-selectbox - if can?(current_user, :"admin_#{issuable.to_ability_name}", @project) - = users_select_tag("#{issuable.class.table_name.singularize}[assignee_id]", placeholder: 'Select assignee', class: 'custom-form-control js-select2 js-assignee', selected: issuable.assignee_id, project: @target_project, null_user: true, current_user: true) + = users_select_tag("#{issuable.class.table_name.singularize}[assignee_id]", placeholder: 'Select assignee', class: 'custom-form-control js-select2 js-assignee', selected: issuable.assignee_id, project: @target_project, null_user: true, current_user: true, first_user: true) %div.prepend-top-default.clearfix .issuable-context-title |