Skip to content

Commit

Permalink
fix hideReason not working when used without hideLinkedPage
Browse files Browse the repository at this point in the history
Typo in a previous patch
  • Loading branch information
NovemLinguae committed Aug 10, 2023
1 parent 19b092a commit 6953a06
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 6953a06

Please sign in to comment.