Skip to content

Commit

Permalink
fix hideReason not working when used without hideLinkedPage (#1851)
Browse files Browse the repository at this point in the history
Typo in a previous patch
  • Loading branch information
NovemLinguae authored Nov 3, 2023
1 parent 6a23a24 commit b827e65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/twinklewarn.js
Original file line number Diff line number Diff line change
Expand Up @@ -1507,7 +1507,7 @@ Twinkle.warn.callback.change_subcategory = function twinklewarnCallbackChangeSub
}

// If template shouldn't have an optional message, hide the optional message label and text box
var hideReason = Twinkle.warn.getTemplateProperty(Twinkle.warn.messages, selected_template, 'hideLinkedPage');
var hideReason = Twinkle.warn.getTemplateProperty(Twinkle.warn.messages, selected_template, 'hideReason');
if (hideReason) {
e.target.form.reason.value = '';
Morebits.quickForm.setElementVisibility(e.target.form.reason.parentElement, false);
Expand Down

0 comments on commit b827e65

Please sign in to comment.