# Bug OP-17683 - Single select list custom field always showing default value if one is set

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

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module | Administration / Custom fields |
| Target versions | 16.3.0 |
| Observed in versions | 16.2.0 |
| Sprint | 16.3.0 |
| Backlog bucket |  |
| Bug found in version (deprecated) | 16.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 |  |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Planning

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

## Costs

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

## Description

### Steps to reproduce

1.  Enable the costs reports module in a project

2.  Create a custom field of type list on Spent time

3.  Give the custom field at least 2 options, making the **first one** the default

4.  Book some time on a work package

5.  In the cost reports look at all time entries by removing all groups and filters

6.  Edit the spent time, setting the value of the custom field to the value that's not the default

7.  Save by clicking on "Log", closing the dialog

8.  Edit the spent time entry again, and look at the value for the custom field

### What is the buggy behavior?

  - the default value is shown for the custom field

### What is the expected behavior?

  - the actually selected value should be shown

### Environment information

**OpenProject version**

*v16.2.1*
