# Bug AUTOWORK-443 - Deleting a variant used by archived project does not work

Project: Stream Workflows & Automations
Status: confirmed
URL: https://community.openproject.org/work_packages/AUTOWORK-443

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module | Administration / Type/Variants and Workflows |
| Target versions |  |
| Observed in versions | 18.0.0, 18.0.1 |
| Sprint |  |
| Backlog bucket |  |
| Bug found in version (deprecated) |  |
| 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 |  |
| Effort (shirt size) |  |
| Work |  |
| Labor costs |  |

## Description

###   

###   

Seen while trying to clean up migrated types while having archived projects.

### Steps to reproduce

1.  Create a type variant
    
2.  Use it in a project and create a work package of that type
    
    1.  You can additionally create other work packages of the same variant in other projects
        
3.  Archive the project
    
4.  Go to the administration to delete the variant
    
    1.  A dialog proposes to migrate existing work packages using that variant to the parent type, and indicates which work packages are affected, and which fields will be added
        
    2.  if there are work packages without any transition, there is a link to see them. Clicking that link produces an error &quot;Project filter has invalid values&quot; (another bug or same bug?)
        
    3.  clicking the link &quot;_n_ work packages will use the new configuration&quot; fails too with &quot;Project filter has invalid values&quot;
        
5.  Click Delete
    

### What is the buggy behavior?

*   Nothing happens, like if nothing was done. The dialog is closed, no error, nothing
    

### What is the expected behavior?

1.  Either error message or successful deletion
    

### Screenshots and other files

See attached screen recording for behavior

<br>

Error after clicking the &quot;_n_ work packages will use the new configuration&quot; link in the dialog

<img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/927736/content">

### Environment information

**OpenProject installation type**

*   [x] Cloud edition
*   [ ] On-Premise
*   [ ] Packaged installation
*   [ ] Docker All-in-one container
*   [ ] Docker-compose installation
*   [ ] Other (please specify)

**OpenProject version**

18.0.0

<br>

**Browser**

*   [ ] Chrome
*   [x] Firefox
*   [ ] Safari
*   [ ] Mobile Safari
*   [ ] Other (please specify)

**Operating System**

*   [ ] Windows
*   [x] Mac OS X
*   [ ] Mobile iOS
*   [ ] Mobile Android
*   [ ] Linux (please specify distro)
*   [ ] Chrome OS
*   [ ] Other (please specify)

**Language**

*   [x] English
*   [ ] German
*   [ ] Other:
