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 {
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,
},
};
......
......@@ -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!
......
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