# Bug OP-2081 - Journal entries can be duplicated

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

## Open points

_No work packages_

## Details

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

## Planning

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

## Costs

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

## Description

### Reproduction

Exact reproduction is unknown, the problem will not be easily reproducile (it occurs only rarely on known production systems).  
A probable reproduction might be:

  - have a work package
  - edit the work package
  - click the save button multiple times in quick succession

### Expected behaviour

  - for each change of a work package, only a single journal entry is created
      - there is only one row in the `journals` table of the database
      - no two rows in that table are equal in `journable_type`, `journable_id` **and** `version`

### Actual behaviour

  - it is possible that there are two equal journal entries
  - two or more rows in `journals` can be equal in `journable_type`, `journable_id` **and** `version`
