From dc2613600cc5a2a0e1418762a779cd89f18dd30e Mon Sep 17 00:00:00 2001 From: KN4CK3R Date: Fri, 20 Aug 2021 21:26:19 +0200 Subject: Keep attachments on tasklist update (#16750) * Send attachments too. * Use tasklist flag. * use action="ignoreAttachments" instead of "tasklist" * Use boolean parameter. Co-authored-by: zeripath --- web_src/js/markup/tasklist.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'web_src') diff --git a/web_src/js/markup/tasklist.js b/web_src/js/markup/tasklist.js index 24b29ddb7a..ea1a1f824a 100644 --- a/web_src/js/markup/tasklist.js +++ b/web_src/js/markup/tasklist.js @@ -46,9 +46,10 @@ export function initMarkupTasklist() { const {updateUrl, context} = editContentZone.dataset; await $.post(updateUrl, { + ignore_attachments: true, _csrf: window.config.csrf, content: newContent, - context, + context }); rawContent.textContent = newContent; -- cgit v1.2.3