# Bug OP-8896 - Work package with attachment is journaled before destruction

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

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module |  |
| Target versions | 12.0.0 |
| Observed in versions |  |
| Sprint | 12.0.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 |  |
| 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.  Have a work package with attachments
2.  Destroy the work package

### **Actual Behavior**

The work package is destroyed successfully. There is no error visible to the user. However the destruction takes longer than necessary as the work package is saved while it is being destroyed, once for every attachment.

### **Expected Behavior**

The work package should not be saved while it is being destroyed.
