[FIX] Activity filter select 3481 2594

Implements [ticket 3481](https://www.openproject.org/work_packages/3481) and [ticket 2594](https://www.openproject.org/work_packages/2594).