# Bug OP-9740 - Custom fields disappearing after attachment upload

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

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | High |
| Module |  |
| Target versions | 12.0.7 |
| Observed in versions |  |
| Sprint | 12.0.7 |
| 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

### **Environment**:

Your OpenProject Version: 12.0.6

### **Steps to reproduce:**

1.  Have `direct_upload` of attachmens set to `false`
2.  Have a custom field configured for a work package. The effect is visible best on multi select user custom fields but every custom field is affected.
3.  Have a work package with the custom field. It does not matter whether a value is set or not but the bug is more visible if it is set.

<figure class="image op-uc-figure"><div class="op-uc-figure--content"><img class="op-uc-image" src="/api/v3/attachments/27064/content"></div></figure>

1.  Upload an attachment to the work package.
2.  Reload the page

### **Actual Behavior**

<figure class="image op-uc-figure"><div class="op-uc-figure--content"><img class="op-uc-image" src="/api/v3/attachments/27066/content"></div></figure>

The custom field is not rendered and appears to be empty.

In case a multi select user custom field is configured, an error is reported in the console:

<figure class="image op-uc-figure"><div class="op-uc-figure--content"><img class="op-uc-image" src="/api/v3/attachments/27067/content"></div></figure>

### **Expected Behavior**

Custom fields rendered.
