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
f46f7a7c
Commit
f46f7a7c
authored
May 20, 2021
by
Heinrich Lee Yu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove assignee_id param in new issue path
This does not work so we just remove this
parent
4aba5a43
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
5 deletions
+4
-5
app/finders/issuable_finder.rb
app/finders/issuable_finder.rb
+1
-1
app/helpers/issues_helper.rb
app/helpers/issues_helper.rb
+1
-1
app/views/projects/issues/_nav_btns.html.haml
app/views/projects/issues/_nav_btns.html.haml
+1
-2
spec/helpers/issues_helper_spec.rb
spec/helpers/issues_helper_spec.rb
+1
-1
No files found.
app/finders/issuable_finder.rb
View file @
f46f7a7c
...
...
@@ -50,7 +50,7 @@ class IssuableFinder
attr_reader
:original_params
attr_writer
:parent
delegate
(
*
%i[
assignee
milestones]
,
to: :params
)
delegate
(
*
%i[milestones]
,
to: :params
)
class
<<
self
def
scalar_params
...
...
app/helpers/issues_helper.rb
View file @
f46f7a7c
...
...
@@ -200,7 +200,7 @@ module IssuesHelper
jira_integration_path:
help_page_url
(
'integration/jira/'
,
anchor:
'view-jira-issues'
),
markdown_help_path:
help_page_path
(
'user/markdown'
),
max_attachment_size:
number_to_human_size
(
Gitlab
::
CurrentSettings
.
max_attachment_size
.
megabytes
),
new_issue_path:
new_project_issue_path
(
project
,
issue:
{
assignee_id:
finder
.
assignee
.
try
(
:id
),
milestone_id:
finder
.
milestones
.
first
.
try
(
:id
)
}),
new_issue_path:
new_project_issue_path
(
project
,
issue:
{
milestone_id:
finder
.
milestones
.
first
.
try
(
:id
)
}),
project_import_jira_path:
project_import_jira_path
(
project
),
project_labels_path:
project_labels_path
(
project
,
include_ancestor_groups:
true
,
format: :json
),
project_milestones_path:
project_milestones_path
(
project
,
format: :json
),
...
...
app/views/projects/issues/_nav_btns.html.haml
View file @
f46f7a7c
...
...
@@ -15,8 +15,7 @@
=
button_tag
_
(
"Edit issues"
),
class:
"gl-button btn btn-default gl-mr-3 js-bulk-update-toggle"
-
if
show_new_issue_link?
(
@project
)
=
link_to
_
(
"New issue"
),
new_project_issue_path
(
@project
,
issue:
{
assignee_id:
finder
.
assignee
.
try
(
:id
),
milestone_id:
finder
.
milestones
.
first
.
try
(
:id
)
}),
issue:
{
milestone_id:
finder
.
milestones
.
first
.
try
(
:id
)
}),
class:
"gl-button btn btn-confirm"
,
id:
"new_issue_link"
spec/helpers/issues_helper_spec.rb
View file @
f46f7a7c
...
...
@@ -312,7 +312,7 @@ RSpec.describe IssuesHelper do
jira_integration_path:
help_page_url
(
'integration/jira/'
,
anchor:
'view-jira-issues'
),
markdown_help_path:
help_page_path
(
'user/markdown'
),
max_attachment_size:
number_to_human_size
(
Gitlab
::
CurrentSettings
.
max_attachment_size
.
megabytes
),
new_issue_path:
new_project_issue_path
(
project
,
issue:
{
assignee_id:
finder
.
assignee
.
id
,
milestone_id:
finder
.
milestones
.
first
.
id
}),
new_issue_path:
new_project_issue_path
(
project
,
issue:
{
milestone_id:
finder
.
milestones
.
first
.
id
}),
project_import_jira_path:
project_import_jira_path
(
project
),
project_labels_path:
project_labels_path
(
project
,
include_ancestor_groups:
true
,
format: :json
),
project_milestones_path:
project_milestones_path
(
project
,
format: :json
),
...
...
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