Page MenuHomePhabricator

RC filters - 'No Filters found' produces 'TypeError: undefined is not an object (evaluating 'filterItem.isSelected')'
Closed, ResolvedPublic

Description

In betalabs (also found on plwiki wmf.19) on RC page in 'Search filter area' enter search criteria that return 'No Filters found'. That will display 'TypeError: undefined is not an object (evaluating 'filterItem.isSelected')' in the Console.

Uncaught TypeError: Cannot read property 'isSelected' of undefined
    at MwRcfiltersController.mw.rcfilters.Controller.toggleFilterSelect (eval at <anonymous>
    at MwRcfiltersUiFilterWrapperWidget.mw.rcfilters.ui.FilterWrapperWidget.onTextInputEnter 
    at OoUiTextInputWidget.oo.EventEmitter.emit (eval at <anonymous> 
    at OoUiTextInputWidget.OO.ui.TextInputWidget.onKeyPress 
    at HTMLInputElement.dispatch
    at HTMLInputElement.elemData.handle

Event Timeline

Etonkovidova renamed this task from RC filters - ' to RC filters - 'No Filters found' produces 'TypeError: undefined is not an object (evaluating 'filterItem.isSelected')'.Apr 6 2017, 11:10 PM
Etonkovidova updated the task description. (Show Details)

Change 347035 had a related patch set uploaded (by Mooeypoo):
[mediawiki/core@master] RCFilters UI: Check that filter exists before changing its state

https://gerrit.wikimedia.org/r/347035

Change 347035 merged by jenkins-bot:
[mediawiki/core@master] RCFilters UI: Check that filter exists before changing its state

https://gerrit.wikimedia.org/r/347035

Checked in betalabs - it's been fixed.

QA Recommendation: Resolve