# Bug OP-1116 - Editing relations in modal dialog leads to warning

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

## Open points

_No work packages_

## Details

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

## Planning

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

## Costs

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

## Description

**Reproduction**

1.  In Backlogs view open a work package (modal appears)
2.  add a related work package
3.  close the modal (e.g. by clicking the cross in the top-right corner)

**Expected behaviour**

  - The modal closes without further interaction

**Actual behaviour**

  - A message box appears, asking if I want to dismiss the changes I made
      - click no: modal stays open
      - click yes: modal closes, nothing is dismissed, because it was already saved
