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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
96b7ffa0
Commit
96b7ffa0
authored
Jul 06, 2018
by
Mark Chao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix coding style
parent
99fdb7d9
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
app/services/projects/autocomplete_service.rb
app/services/projects/autocomplete_service.rb
+2
-1
ee/app/services/groups/autocomplete_service.rb
ee/app/services/groups/autocomplete_service.rb
+2
-1
No files found.
app/services/projects/autocomplete_service.rb
View file @
96b7ffa0
...
...
@@ -30,7 +30,8 @@ module Projects
hashes
=
available_labels
.
as_json
(
only:
[
:title
,
:color
])
if
target
&
.
respond_to?
(
:labels
)
if
already_set_labels
=
available_labels
&
target
.
labels
already_set_labels
=
available_labels
&
target
.
labels
if
already_set_labels
.
present?
titles
=
already_set_labels
.
map
(
&
:title
)
hashes
.
each
do
|
hash
|
if
titles
.
include?
(
hash
[
'title'
])
...
...
ee/app/services/groups/autocomplete_service.rb
View file @
96b7ffa0
...
...
@@ -11,7 +11,8 @@ module Groups
hashes
=
available_labels
.
as_json
(
only:
[
:title
,
:color
])
if
target
&
.
respond_to?
(
:labels
)
if
already_set_labels
=
available_labels
&
target
.
labels
already_set_labels
=
available_labels
&
target
.
labels
if
already_set_labels
.
present?
titles
=
already_set_labels
.
map
(
&
:title
)
hashes
.
each
do
|
hash
|
if
titles
.
include?
(
hash
[
'title'
])
...
...
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