Commit 58a005cf authored by Brett Walker's avatar Brett Walker Committed by Fatih Acet

Pass down the new state of the checkbox

and whitelist the `update_task` parameter
parent 68c02764
...@@ -49,7 +49,7 @@ export default class TaskList { ...@@ -49,7 +49,7 @@ export default class TaskList {
update(e) { update(e) {
const $target = $(e.target); const $target = $(e.target);
const { lineNumber, lineSource } = e.detail; const { lineNumber, lineSource, checked } = e.detail;
const patchData = {}; const patchData = {};
patchData[this.dataType] = { patchData[this.dataType] = {
...@@ -58,6 +58,7 @@ export default class TaskList { ...@@ -58,6 +58,7 @@ export default class TaskList {
update_task: { update_task: {
line_number: lineNumber, line_number: lineNumber,
line_source: lineSource, line_source: lineSource,
checked: checked,
}, },
}; };
......
...@@ -246,7 +246,7 @@ class Projects::IssuesController < Projects::ApplicationController ...@@ -246,7 +246,7 @@ class Projects::IssuesController < Projects::ApplicationController
task_num task_num
lock_version lock_version
discussion_locked discussion_locked
] + [{ label_ids: [], assignee_ids: [] }] ] + [{ label_ids: [], assignee_ids: [], update_task: [:line_number, :line_source, :checked] }]
end end
def authenticate_new_issue! def authenticate_new_issue!
......
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