# Bug OP-19252 - Errors with "include project" work package list filter with a portfolio

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

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module | Modules and project features / Work packages, Modules and project features / Portfolio |
| Target versions | 17.4.0 |
| Observed in versions | 17.3.0 |
| Sprint |  |
| Backlog bucket |  |
| Bug found in version (deprecated) | 17.3.x |
| 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 | OP Dev Polaris Team |
| 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 see a portfolio
    
2.  Go to the work package list of any project (or global for all projects)
    
3.  Save a filter (does not matter which)
    
4.  Click &quot;Include projects&quot;
    
5.  Choose the portfolio (with or without subprojects)
    
6.  Press &quot;Apply&quot;
    

### What is the buggy behavior?

*   Click &quot;Include projects&quot; again
    
    *   The portfolio is not checked
        
    *   Selecting the portfolio again and pressing &quot;Apply&quot;;&nbsp;  
        it shows a flash error message&quot;our view is erroneous and could not be processed. Project filter has invalid values.&quot;
        
*   Or save the query and try to edit the saved query will also show the error above
    

### What is the expected behavior?

1.  The portfolio is checked
    
2.  Editing the query and/or &quot;include projects&quot; selection works
    

### Screenshots and other files

<img class="image_resized op-uc-image op-uc-image_inline" style="width:633px;" src="/api/v3/attachments/920754/content">

### Environment information

**OpenProject installation type**

*   [x] All

**OpenProject version**

*   [x] 17.3

**Browser**

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

**Operating System**

*   [ ] Windows
*   [x] Mac OS X
*   [ ] Mobile iOS
*   [ ] Mobile Android
*   [ ] Linux (please specify distro)
*   [ ] Chrome OS
*   [ ] Other (please specify)

**Language**

*   [x] EN
