# Bug OP-2556 - Work package attributes sometimes not saved after update

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

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | High |
| Module |  |
| Target versions | 5.0.9 |
| 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 |  |
| 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.

**Steps to reproduce**

1.  From a work package
2.  Create new work package
    1.  via “Relations” tab -\> add work package
    2.  via “+Work package”
3.  Save created work package
4.  **Don’t reload the page**
5.  Update priority or any other attribute of the created work package.

**Actual behavior**

  - A success message is shown
  - The attribute is not updated on the newly created work package —\> look at gif for an example.
  - The attribute is updated on the work package from which’s page the new work package was created

**Expected behavior**

  - Attribute updated on newly created work package
  - Attribute on other work package not updated (except if inherited attribute)

**Note**

  - The problem disappears once the page is reloaded
      - Cause is a missing reinitialization of the angular show controller

**Screenshot**  
![](Parent-child.gif)

**QA system**

  - SaaS
  - OpenProject 5.0.7
