# Bug COSTS-85 - Changing the work package on an existing time entry creates a new time entry instead of updating the old one

Project: Stream Time & Costs
Status: closed
URL: https://community.openproject.org/work_packages/COSTS-85

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | High |
| Module |  |
| Target versions | 15.3.1 |
| Observed in versions | 15.3.0 |
| Bug found in version (deprecated) | 15.3.x |
| Requires doc change | No |
| Accessibility | No |
| Pull preview |  |
| List |  |
| Labels |  |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable | Klaus Zanders |
| 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 time entry
    
2.  Update the time entry and switch to a different work package
    
3.  Save the time entry with the &quot;Log&quot; button
    

### What is the buggy behavior?

*   A new time entry is created instead of the old one being updated, leading to double tracked time
    

### What is the expected behavior?

1.  The old time entry is updated instead of a new one being created
    

### Screenshots and other files

_See https://community.openproject.org/projects/stream-time-and-costs/work\_packages/61322/activity#comment-883421_
