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
9f586b81
Commit
9f586b81
authored
Jun 21, 2017
by
Toon Claes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Refactor long `if` condition to helper method for readability
parent
a8c5f0be
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
app/helpers/ee/search_helper.rb
app/helpers/ee/search_helper.rb
+8
-1
No files found.
app/helpers/ee/search_helper.rb
View file @
9f586b81
...
@@ -2,9 +2,16 @@ module EE
...
@@ -2,9 +2,16 @@ module EE
module
SearchHelper
module
SearchHelper
def
search_filter_input_options
(
type
)
def
search_filter_input_options
(
type
)
options
=
super
options
=
super
options
[
:data
][
:'multiple-assignees'
]
=
'true'
if
(
type
==
:issues
)
&&
@project
.
feature_available?
(
:multiple_issue_assignees
)
options
[
:data
][
:'multiple-assignees'
]
=
'true'
if
search_multiple_assignees?
(
type
)
options
options
end
end
private
def
search_multiple_assignees?
(
type
)
type
==
:issues
&&
@project
.
feature_available?
(
:multiple_issue_assignees
)
end
end
end
end
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