# Bug OP-16012 - Deleting cost query and clicking apply again breaks

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

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module |  |
| Target versions | 14.6.2 |
| Observed in versions |  |
| Sprint | 14.6.2 |
| 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.  Go to /cost\_reports
    
2.  Select report or save new one. Browser is located to /cost\_reports/:id
    
3.  Delete report.
    

### What is the buggy behavior?

1.  Browser is still located /cost\_reports/:id
    
2.  Click on Apply button leads to 500 error as `@query` is not populated
    

### What is the expected behavior?

1.  Browser url should be /cost\_reports
    
2.  Clicking on Apply button should work (e.g. update result table)
