RCFilters UI: Actually backwards-compat instead of overriding false
authorMoriel Schottlender <moriel@gmail.com>
Wed, 17 May 2017 00:35:43 +0000 (17:35 -0700)
committerMoriel Schottlender <moriel@gmail.com>
Wed, 17 May 2017 00:35:43 +0000 (17:35 -0700)
Another typo in the code made highlight feature always load as false
when you loaded a saved filter.

Bug: T165437
Change-Id: I0e0efa3576659e4145b20013e4af7a06e4e7c0ff

resources/src/mediawiki.rcfilters/dm/mw.rcfilters.dm.SavedQueriesModel.js

index b8f2db5..3ffc12e 100644 (file)
@@ -85,7 +85,7 @@
                        // not need this line when we release this to the general wikis.
                        // This method will automatically fix all saved queries anyways
                        // for existing users, who are only betalabs users at the moment.
-                       normalizedData.highlights.highlight = !!Number( normalizedData.highlight );
+                       normalizedData.highlights.highlight = !!Number( normalizedData.highlights.highlight );
 
                        items.push(
                                new mw.rcfilters.dm.SavedQueryItemModel(