From efcad22814ab74b518fb708c7700024db8c82255 Mon Sep 17 00:00:00 2001 From: Kevin Porras Date: Mon, 7 Dec 2020 15:03:52 -0600 Subject: [PATCH] refs #24971: Avoid status change when not change is selected. --- .../redmine_mentions_suggestions/_edit_mentionable.html.erb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/views/hooks/redmine_mentions_suggestions/_edit_mentionable.html.erb b/app/views/hooks/redmine_mentions_suggestions/_edit_mentionable.html.erb index 537c264..a1e7345 100644 --- a/app/views/hooks/redmine_mentions_suggestions/_edit_mentionable.html.erb +++ b/app/views/hooks/redmine_mentions_suggestions/_edit_mentionable.html.erb @@ -64,7 +64,9 @@ } if ($('input[name="issue_suggest_status"]:checked').val()) { var statusId = $('input[name="issue_suggest_status"]:checked').val(); - $('#issue_status_id').val(statusId); + if (statusId != 0) { + $('#issue_status_id').val(statusId); + } } }); }