# Bug BNE-189 - Documents: create new work package modal doesn't load the Project when it's a porfolio/program

Project: Stream BlockNote extensions
Status: closed
URL: https://community.openproject.org/work_packages/BNE-189

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module | Modules and project features / Documents, Modules and project features / Text editor / BlockNoteJS |
| Target versions | 18.0.0 |
| Observed in versions |  |
| Sprint |  |
| Backlog bucket |  |
| Bug found in version (deprecated) |  |
| 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 and open a document from a portfolio/program
    
2.  Invoke Create new work package command
    
3.  When the modal opens, look at the Project field
    

### What is the buggy behavior?

*   Project field is empty and you need to manually search for your portfolio
    

<img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/926542/content">

### What is the expected behavior?

1.  Just like it automatically loads when created inside a project, it should behave the same for portfolios/programs
    

###   

### Environment information

**OpenProject version**

_18.0_
