# Bug OP-15229 - Deactivating work package attachment on project fails, if project has unset required project attribute

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

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module |  |
| Target versions | 14.3.0 |
| Observed in versions | 14.2.0 |
| Sprint | 14.3.0 |
| Backlog bucket |  |
| Bug found in version (deprecated) | 14.2.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 Titan 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.  Add a required project attribute.
    
2.  Open a project, where it is still unset.
    
3.  go to _Project settings &gt; Files_ and open tab _Attachments_
    
4.  try to activate or deactivate with the toggle
    

### What is the buggy behavior?

*   An error occurs
    

### What is the expected behavior?

1.  (probably) the update should work (TBD)
