# Bug OP-7649 - Cost report filtered by custom field list does return an empty list

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

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date | 2020-09-22 – 2020-09-30 |
| Priority | High |
| Module |  |
| Target versions | 11.0.0 |
| Observed in versions | 10.6.0 |
| Sprint | 11.0.0 |
| Backlog bucket |  |
| Bug found in version (deprecated) | 10.6.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

### **Environment**:

OpenProject Version: 10.6.4

Operating System / Browser / OpenProject language: Windows, Chrome, English

### **Logs**

No Errors, status=200:  
  
App 141 output: method=POST path=/projects/uni-campus-app/cost\_reports format=\*/\* controller=CostReportsController action=index status=200 duration=38.71 view=0.00 db=15.19 user=14

### **Steps to reproduce:**

1.  Create custom field on project (&quot;topic&quot;):
    1.  Choose &quot;list&quot; _Format_
    2.  Add _&quot;General&quot;, &quot;Authentication&quot; and &quot;Design&quot; items_
    3.  Check _Used as filter_ and _Searchable_
2.  Add custom field to:
    1.  User story work package
    2.  project
3.  Create user story and set topic
4.  Add time entry to work package
5.  Go to _Cost reports_ and filter by &quot;topic&quot;

### **Actual Behavior**

The Cost report filtered by custom field list does return an empty list. The custom field **name** is assigned to the option value:

<figure class="image"><img src="/api/v3/attachments/19187/content"></figure>

### **Expected Behavior**

The custom field **id** should get used as option value. If I change it manually in the HTML it works.
