# Bug COSTS-18 - Cost report opens with preselected work package filter everywhere (once it was opened from Estimates and time section)

Project: Stream Time & Costs
Status: closed
URL: https://community.openproject.org/work_packages/COSTS-18

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | High |
| Module | Modules and project features / Costs and budgets |
| Target versions | 18.0.0 |
| Observed in versions | 13.1.0 |
| Bug found in version (deprecated) | 13.1.x |
| Requires doc change | No |
| Accessibility | No |
| Pull preview |  |
| List |  |
| Labels |  |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable |  |
| Product manager |  |
| Developers | Klaus Zanders |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Planning

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

## Costs

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

## Description

### Steps to reproduce

1.  Login to QA Edge
2.  Go to a work package and log time
3.  In Estimates and time section, click on the number of hours so that the cost report opens
4.  Notice how in the cost report, there is a work package filter with the correct work package as value, which is OK
5.  Go back and open any other module, such as Work packages list
6.  Go to Time and costs module again

### What is the buggy behavior?

*   Cost report opens again with the same work package filter pointing out to the work package for which the time was recently logged, which is not OK
*   Even if you open another project from the project dropdown at the top of the screen and you land on Time and costs page for that other project, work package filter will still point out to the previous work package which does not even belong to this particular project

### What is the expected behavior?

1.  Cost report should be reset in both cases and should display the default state (the one which showed before we logged time and opened the cost report from the Estimates and time section)

**OpenProject version**

_13.2, 13.1.2_
