Skip to content
Snippets Groups Projects
Commit 4e12a4c8 authored by Valery Sizov's avatar Valery Sizov
Browse files

fix of users_select_tag helper

parent a9e4af35
Branches andrey-remove-group-caching
No related tags found
1 merge request!349Fix of users_select_tag helper
Pipeline #12834680 failed
Loading
Loading
@@ -5,6 +5,7 @@ def users_select_tag(id, opts = {})
css_class << "skip_ldap " if opts[:skip_ldap]
css_class << (opts[:class] || '')
value = opts[:selected] || ''
current_user = opts[:current_user] || false
first_user = opts[:first_user] && current_user ? current_user.username : false
Loading
Loading
@@ -16,7 +17,7 @@ def users_select_tag(id, opts = {})
any_user: opts[:any_user] || false,
email_user: opts[:email_user] || false,
first_user: first_user,
current_user: opts[:current_user] || false,
current_user: current_user,
"push-code-to-protected-branches" => opts[:push_code_to_protected_branches],
author_id: opts[:author_id] || ''
}
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment