Fixed Error when using filters when reverting templates


Well-known member
XenForo tries to revert all customized templates instead of only selected templates when template name filter is used and box to select all templates is checked.

Screenshot below.

How to reproduce:
1. Install any style with multiple customized templates
2. In admin panel in styles section select "Customized Components", select your style.
3. Write something in filter to show only few templates ("author" on screenshot below)
4. Check box to select all items
5. Click "Revert Selected Items" button.

After doing all those steps you'll get overlay asking if you want to revert all templates. It will show total number of customized templates instead of only selected templates. That is not a typo - after clicking button to confirm action XF will revert all customized templates.



XenForo developer
Staff member
Hidden checkboxes on this page will now be disabled, so that prevents the issue but does also maintain the checkbox status (such as if you make a typo).