fix grouping one hide other

Implements [2668](https://www.openproject.org/issues/2668)