[2.3] Fix parent filter showing up when showing child list

Fix created by @fran6co in #2439 ported for branch 2.3.