From 8a020b3ec727b8c9fa4d819855469dd348e58ee7 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Fri, 29 Nov 2024 17:41:00 +0000 Subject: [PATCH] Don't send comment text when reopening a note Fixes #5359. --- app/assets/javascripts/index/note.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/index/note.js b/app/assets/javascripts/index/note.js index 4e8f64d09c..8687321c92 100644 --- a/app/assets/javascripts/index/note.js +++ b/app/assets/javascripts/index/note.js @@ -60,7 +60,7 @@ OSM.Note = function (map) { } }; - if (name !== "subscribe" && name !== "unsubscribe") { + if (name !== "subscribe" && name !== "unsubscribe" && name !== "reopen") { ajaxSettings.data = { text: $("textarea").val() }; }