# Bug OP-18266 - 500er when changing sort order of work package status in administration

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

## Open points

_No work packages_

## Details

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

## Planning

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

## Costs

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

## Description

### Steps to reproduce

*   Go to the administration -&gt; work packages -&gt; statuses
    
*   change the order of a status
    
*   delete a status
    

### What is the buggy behavior?

*   A 404 error appears
    
*   The action is carried out
    
*   Manual reload shows the page
    

### What is the expected behavior?

*   No error, the page should load normally
    

###   

### Environment information

**OpenProject version**

17.0
