mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-12-12 14:35:28 +00:00
6446cf950f
This is a direct follow-up to I6ebd020. Steps to reproduce the bug: * Make sure you have a template with a deprecated parameter. The position doesn't matter. * Add the template. The deprecated parameter is hidden. * Add an undocumented parameter, e.g. "b". This is added to the end, as it should. * Add an undocumented parameter "a". This should appear before "b", but doesn't. The reason is because the invisible deprecated parameter is in the list that is used to calculate the index, shifting it by 1 (or more when there are more hidden parameters). This patch includes a few closely related changes: * We can loop the list of checkboxes directly instead of indirectly via the list of parameter names. * I made it so that an active filter only resets if it would hide the new parameter. The original problem we had to solve was that the new parameter would always be visible, even if it doesn't match the filter. This awkward mismatch is still guaranteed to not happen. Bug: T274551 Change-Id: I1b0480ae836cc19b77b159d3fb30ff32e8c59df4 |
||
---|---|---|
.. | ||
ve.ui.MWAceEditorWidget.js | ||
ve.ui.MWCategoryInputWidget.js | ||
ve.ui.MWCategoryItemWidget.js | ||
ve.ui.MWCategoryPopupWidget.js | ||
ve.ui.MWCategoryWidget.js | ||
ve.ui.MWDismissibleMessageWidget.js | ||
ve.ui.MWEditSummaryWidget.js | ||
ve.ui.MWEducationPopupWidget.js | ||
ve.ui.MWExternalLinkAnnotationWidget.js | ||
ve.ui.MWGalleryGroupWidget.js | ||
ve.ui.MWGalleryItemWidget.js | ||
ve.ui.MWInternalLinkAnnotationWidget.js | ||
ve.ui.MWLazyMultilineTextInputWidget.js | ||
ve.ui.MWMediaInfoFieldWidget.js | ||
ve.ui.MWMoreParametersResultWidget.js | ||
ve.ui.MWNoParametersResultWidget.js | ||
ve.ui.MWParameterCheckboxInputWidget.js | ||
ve.ui.MWParameterResultWidget.js | ||
ve.ui.MWParameterSearchWidget.js | ||
ve.ui.MWPreTextInputWidget.js | ||
ve.ui.MWTargetWidget.js | ||
ve.ui.MWTemplateOutlineParameterCheckboxLayout.js | ||
ve.ui.MWTemplateTitleInputWidget.js | ||
ve.ui.MWTocWidget.js | ||
ve.ui.MWTransclusionOutlineButtonWidget.js | ||
ve.ui.MWTransclusionOutlineContainerWidget.js | ||
ve.ui.MWTransclusionOutlinePartWidget.js | ||
ve.ui.MWTransclusionOutlinePlaceholderWidget.js | ||
ve.ui.MWTransclusionOutlineTemplateWidget.js | ||
ve.ui.MWTransclusionOutlineWikitextWidget.js |