Commit 66d449c2 authored by Simon Knox's avatar Simon Knox

correct url param for started and upcoming milestones

parent 7f1324dd
...@@ -43,7 +43,7 @@ class BoardsStoreEE { ...@@ -43,7 +43,7 @@ class BoardsStoreEE {
if (this.store.boardConfig.milestoneId === 0) { if (this.store.boardConfig.milestoneId === 0) {
milestoneTitle = 'No+Milestone'; milestoneTitle = 'No+Milestone';
} }
updateFilterPath('milestone_title', milestoneTitle); updateFilterPath('milestone_title', encodeURIComponent(milestoneTitle));
this.store.cantEdit.push('milestone'); this.store.cantEdit.push('milestone');
} }
......
...@@ -9,8 +9,13 @@ module EE ...@@ -9,8 +9,13 @@ module EE
(!@project.feature_available?(:multiple_issue_boards) || (!@project.feature_available?(:multiple_issue_boards) ||
!@project.feature_available?(:scoped_issue_board) || !@project.feature_available?(:scoped_issue_board) ||
!@project.feature_available?(:issue_board_focus_mode))).to_s !@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
data = { data = {
board_milestone_title: board&.milestone&.title, board_milestone_title: milestone_title,
board_milestone_id: board&.milestone_id, board_milestone_id: board&.milestone_id,
board_assignee_username: board&.assignee&.username, board_assignee_username: board&.assignee&.username,
label_ids: board&.label_ids, label_ids: board&.label_ids,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment