# Bug SPAR-126 - Child relation for milestones must be prevented in relations tab

Project: Stream Planning and Reporting
Status: closed
URL: https://community.openproject.org/work_packages/SPAR-126

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module |  |
| Target versions | 15.1.1 |
| Observed in versions | 15.1.0 |
| Bug found in version (deprecated) | 15.1.x |
| Requires doc change | No |
| Accessibility | No |
| Pull preview |  |
| List |  |
| Labels |  |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable | Christophe Bliard |
| 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.  Create a milestone

2.  Go to the relations tab

3.  Try to link another work package as an existing child

### What is the buggy behavior?

  - It's possible, but milestones actually can't have children

### What is the expected behavior?

1.  The menu item to link an existing child should be hidden

2.  Even if the menu item is present, there should be an error preventing the child relation from being created

### Analysis

Occurs in the `WorkPackageChildrenController#children` when POSTing to `/work_packages/123/children`.

**OpenProject version**

*15.1.x*
