# Bug OP-16042 - Custom field filters removed when activating baseline

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

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module |  |
| Target versions | 14.6.3 |
| Observed in versions |  |
| Sprint | 14.6.3 |
| 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 | Jens Ulferts |
| 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.  Have a project that has two custom fields activated (e.g. two int custom fields)

2.  Have a type that has the two custom fields activated

3.  Have a work package of that type and in that project
    
    1.  That work package should have had a value set for the second custom fields in the past. There shouldn't be a value for the first custom field..
        
        1.  e.g. it had "2" set for the second custom field a day ago. The value is not changed any more

4.  Go to the work package list

5.  Filter for both custom fields
    
    1.  .e.g set the first for the first custom field to "1" and the filter for the second custom field to "2"
    
    2.  Observe, that the result table is empty

6.  Activate the baseline filtering
    
    1.  .e.g. set it to yesterday (after the custom field was set)

### What is the buggy behavior?

  - The custom field is displayed as having been added to the result list

### What is the expected behavior?

1.  The result list should be empty since the work matches matches the filter criteria neither in the past nor in the present.
