# Bug OP-16670 - The costlog edit form shows incorrect cost value after update

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

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module |  |
| Target versions | 15.4.0 |
| Observed in versions |  |
| Sprint | 15.4.0 |
| 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 | Attila Dombi |
| 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.  Edit a cost entry at `/cost_entries/<id>/edit`.

2.  Fill in the costs field by clicking the pencil icon.

3.  Keep the focus inside the filled in cost field.

4.  Click Save.

### What is the buggy behavior?

  - After the form is reloaded, the old cost value is being shown.

  - However, the database contains the correct value and upon a page refresh, the correct value is shown.

### What is the expected behavior?

1.  The cost field shows the updated value after saving the form

### Screenshots and other files

<img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/322973/content">

### 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**

  - Hosted cloud edition

  - Packaged installation
    
      - What distribution?

  - Docker All-in-one container

  - Docker-compose installation

  - Other (please specify)

**OpenProject version**

*If you're not running on the cloud edition, please specify the version of OpenProject you're running. Example: v12.1.5*

**Browser**

- [ ] Chrome
- [ ] Firefox
- [ ] Safari
- [ ] Mobile Safari
- [ ] Other (please specify)

**Operating System**

- [ ] Windows
- [ ] Mac OS X
- [ ] Mobile iOS
- [ ] Mobile Android
- [ ] Linux (please specify distro)
- [ ] Chrome OS
- [ ] Other (please specify)

**Language**

*Please specify the browser language and the language of the OpenProject user for which the bug occurred.*
