After deleting a node type, a previously set type filter on the Content administration form throws:
Notice: Undefined index: page in node_filter_form() (line 183 of core/modules/node/node.admin.inc).
This should apply just as well to other circumstances, such as the User administration form after deleting a role etc.

The respective filters should be reset:
- either directly after deleting the value filter upon
- or at call time whenever any value filtered upon doesn't exist anymore

Comments

jludwig’s picture

StatusFileSize
new1.88 KB

Here's an idea on how to do this wil still keeping the other filters. This applies the fix to:

- Content admin page (node types)
- User admin page (permissions & roles)

It should be pretty easy to apply the fix wherever else it's needed in case I missed anything.

jludwig’s picture

Status: Active » Needs review

Status: Needs review » Needs work

The last submitted patch, 1: 1822572-unset_nonexistent_filters-1.patch, failed testing.

swentel’s picture

Version: 8.0.x-dev » 7.x-dev
Issue summary: View changes

We are using views now and the default list has not filters anymore, so this is not relevant anymore for D8

dcam’s picture

Status: Needs work » Closed (duplicate)