# Bug OP-2633 - Selected type when choosing "Add child" is not based on order of types in administration

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

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module |  |
| Target versions | 5.0.16 |
| Observed in versions |  |
| Sprint | 5.0.16 |
| 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 |  |
| Product manager |  |
| Developers |  |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Planning

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

## Costs

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

## Description

**Preconditions**

  - Work package module activated.
  - Multiple types activated in project.
  - User can add children to work packages.

**Steps to reproduce**

1.  Open a work package in split screen or full screen.
2.  Select tab “Relations”.
3.  Expand section “Children” and press button “Add child”.

**Actual behavior**

  - The type which is pre-selected is unclear:
      - It’s primarily sorted by type ID.
      - If the type with the lowest ID (e.g. 1) is deactivated in a project, it is instead sorted by the order of types.

**Expected behavior**

  - The pre-selected type is always based on the order in the administration: This makes it easy to understand which type is pre-selected.

**Screenshot**  
![](Bug_Type-order.png)

**QA system**

  - qa.openproject-edge.com
  - OpenProject 5.0.13
