Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Léo-Paul Géneau
gitlab-ce
Commits
e412c1f2
Commit
e412c1f2
authored
Jun 15, 2016
by
Phil Hughes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed issue with move dropdown not being searchable
Closes #18634
parent
bf4455d1
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
0 deletions
+5
-0
app/assets/javascripts/issuable_form.js.coffee
app/assets/javascripts/issuable_form.js.coffee
+4
-0
app/controllers/autocomplete_controller.rb
app/controllers/autocomplete_controller.rb
+1
-0
No files found.
app/assets/javascripts/issuable_form.js.coffee
View file @
e412c1f2
...
...
@@ -102,6 +102,10 @@ class @IssuableForm
return
{
results
:
data
}
data
:
(
query
)
->
{
search
:
query
}
formatResult
:
(
project
)
->
project
.
name_with_namespace
formatSelection
:
(
project
)
->
...
...
app/controllers/autocomplete_controller.rb
View file @
e412c1f2
...
...
@@ -35,6 +35,7 @@ class AutocompleteController < ApplicationController
project
=
Project
.
find_by_id
(
params
[
:project_id
])
projects
=
current_user
.
authorized_projects
projects
=
projects
.
search
(
params
[
:search
])
if
params
[
:search
].
present?
projects
=
projects
.
select
do
|
project
|
current_user
.
can?
(
:admin_issue
,
project
)
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment