Skip to content

Commit f68a1ed

Browse files
authored
Bug 2003859 - Need info is not cleared after submitting a new comment
1 parent b71ec01 commit f68a1ed

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

extensions/BugModal/web/comments.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -957,7 +957,12 @@ Bugzilla.BugModal.InstantUpdater = class InstantUpdater {
957957

958958
// Detect changed fields
959959
currentFormData.forEach((value, key) => {
960-
if (!this.IGNORED_FIELDS.includes(key) && this.initialFormData.get(key) !== value) {
960+
if (
961+
// New or changed field
962+
(!this.IGNORED_FIELDS.includes(key) && this.initialFormData.get(key) !== value) ||
963+
// “Clear needinfo” checkbox for myself, which is ticked by default
964+
key.startsWith('needinfo_override_')
965+
) {
961966
changedFields[key] = value;
962967
}
963968
});

0 commit comments

Comments
 (0)