Bugfix: fixed inheritance breaks filtering if relations are included (issue #3610)
Merge pull request #3622 from g4b0/3610-inheritance-breaks-filtering-if-relations-are-included-bugfix

Bugfix: fixed inheritance breaks filtering if relations are included