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
58a005cf
Commit
58a005cf
authored
Jan 18, 2019
by
Brett Walker
Committed by
Fatih Acet
Jan 30, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Pass down the new state of the checkbox
and whitelist the `update_task` parameter
parent
68c02764
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
app/assets/javascripts/task_list.js
app/assets/javascripts/task_list.js
+2
-1
app/controllers/projects/issues_controller.rb
app/controllers/projects/issues_controller.rb
+1
-1
No files found.
app/assets/javascripts/task_list.js
View file @
58a005cf
...
...
@@ -49,7 +49,7 @@ export default class TaskList {
update
(
e
)
{
const
$target
=
$
(
e
.
target
);
const
{
lineNumber
,
lineSource
}
=
e
.
detail
;
const
{
lineNumber
,
lineSource
,
checked
}
=
e
.
detail
;
const
patchData
=
{};
patchData
[
this
.
dataType
]
=
{
...
...
@@ -58,6 +58,7 @@ export default class TaskList {
update_task
:
{
line_number
:
lineNumber
,
line_source
:
lineSource
,
checked
:
checked
,
},
};
...
...
app/controllers/projects/issues_controller.rb
View file @
58a005cf
...
...
@@ -246,7 +246,7 @@ class Projects::IssuesController < Projects::ApplicationController
task_num
lock_version
discussion_locked
]
+
[{
label_ids:
[],
assignee_ids:
[]
}]
]
+
[{
label_ids:
[],
assignee_ids:
[]
,
update_task:
[
:line_number
,
:line_source
,
:checked
]
}]
end
def
authenticate_new_issue!
...
...
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