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
f91381b5
Commit
f91381b5
authored
Oct 18, 2017
by
Oswaldo Ferreira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add special-case to milestone structs
parent
c643ee75
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
4 deletions
+9
-4
ee/app/helpers/ee/boards_helper.rb
ee/app/helpers/ee/boards_helper.rb
+9
-4
No files found.
ee/app/helpers/ee/boards_helper.rb
View file @
f91381b5
...
...
@@ -10,10 +10,15 @@ module EE
!
@project
.
feature_available?
(
:scoped_issue_board
)
||
!
@project
.
feature_available?
(
:issue_board_focus_mode
))).
to_s
milestone_title
=
board
&
.
milestone
&
.
title
if
[
::
Milestone
::
Started
,
::
Milestone
::
Upcoming
].
include?
board
&
.
milestone
milestone_title
=
board
&
.
milestone
&
.
name
end
# Issues backend filtering expect MilestoneStruct#name as `milestone_title`
# param. For instance, "Upcoming" is an invalid param, "#upcoming" is expected.
milestone_title
=
if
board
.
milestone
.
is_a?
(
::
Milestone
::
MilestoneStruct
)
board
.
milestone
.
name
else
board
.
milestone
&
.
title
end
data
=
{
board_milestone_title:
milestone_title
,
board_milestone_id:
board
&
.
milestone_id
,
...
...
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