# Bug OP-15225 - Type gets automatically changed on move to target project if type not activated in project (possible data loss)

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

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | High |
| Module |  |
| Target versions | 14.3.0 |
| Observed in versions | 14.1.0 |
| Sprint | 14.3.0 |
| Backlog bucket |  |
| Bug found in version (deprecated) | 14.1.x |
| Found in mobile app version |  |
| Follow-up feedback e-mail |  |
| Requires doc change | Yes |
| Accessibility | No |
| Pull preview |  |
| List |  |
| Labels |  |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable | Aaron Contreras |
| 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 two projects (A and B).
    
2.  Activate a work package type X in project A, but not in project B.
    
3.  Create a work package of type X in project A and move to project B.
    

### What is the buggy behavior?

*   The work package type X is automatically changed to a work package of a type which is activated in project B.
    
    *   This can lead to possible data loss as it might be hard to find the work package later on (e.g. if filtering based on the type).
        

<img class="image_resized op-uc-image op-uc-image_inline" style="width:1162px;" src="/api/v3/attachments/109051/content">

### What is the expected behavior?

1.  User needs to be notified that either work package cannot be moved (since type is not activated) or that the type will be changed automatically (with clear warning message).
    
2.  Personally, I think a notification in the move project screen with a highlight of the field &quot;Type&quot; and an explanatory text that the type is not enabled in the target project and therefore a type that is enabled in the target project needs to be activated would be helpful.
    

### Environment information

_Please check and fill out the following details to help us identify in what versions and distributions of OpenProject the error occurs_

**OpenProject installation type**

*   [x] Hosted cloud edition
*   [ ] Packaged installation
    *   What distribution?
        
*   [ ] Docker All-in-one container
*   [ ] Docker-compose installation
*   [ ] Other (please specify)

**OpenProject version**

_OpenProject 14.1.1_

**Browser**

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