# Bug OP-11157 - Time and costs: Project filter set to "is not (includes subprojects)" not working as expected

Project: OpenProject
Status: closed
URL: https://community.openproject.org/work_packages/OP-11157

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module |  |
| Target versions | 12.3.1 |
| Observed in versions |  |
| Sprint | 12.3.1 |
| Backlog bucket |  |
| Bug found in version (deprecated) |  |
| Found in mobile app version |  |
| Follow-up feedback e-mail |  |
| Requires doc change | No |
| Accessibility | No |
| Pull preview |  |
| List |  |
| Labels |  |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable |  |
| Product manager |  |
| Developers |  |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Planning

| Attribute | Value |
| --- | --- |
| Relevance |  |

## Costs

| Attribute | Value |
| --- | --- |
| Votes |  |
| Work |  |
| Labor costs |  |

## Description

### Steps to reproduce

1.  Login as a user with permissions to view time spent for at least two projects.
2.  Go to the _Time an costs_ view.
3.  Add filter _Project_, set &quot;is not (includes subprojects)&quot; and select (at least) two projects from the dropdown list.
4.  Click on _Apply_.

### What is the buggy behavior?

*   Logged time for work packages belonging to the projects which should be excluded by the filter option is displayed.

### What is the expected behavior?

*   Logged time for work packages belonging to the projects which should be excluded by the filter option is not displayed.

### Important note

If for the _Project_ filter with &quot;is not (includes subprojects)&quot; only one project is selected, logged time for work packages belonging to this project are excluded correctly.

### **Logs**

No logs.

### Screenshots and other files

See attachments.

### Environment information

**OpenProject installation type**

*   [ ] Hosted cloud edition
*   [x] Packaged installation
    *   Debian 11
*   [ ] Docker All-in-one container
*   [ ] Docker-compose installation
*   [ ] Other (please specify)

**OpenProject version**

v12.2.4

**Browser**

*   [x] Chrome
*   [ ] Firefox
*   [ ] Safari
*   [ ] Mobile Safari
*   [ ] Other (please specify)

**Language**

English/English
