# Bug OP-2583 - Bulk delete not working when time is logged on work package

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

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module |  |
| Target versions | 5.0.14 |
| 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.
  - Times logged on work package.

**Steps to reproduce**

1.  Select multiple work packages.
2.  Bulk delete.
3.  Select to delete work packages which have time logged on them.

**Actual behavior**

  - Not all work packages are deleted. -\> It appears that only the work package with the logged time is deleted.

**Expected behavior**

  - All work packages are deleted. If the option to transfer the logged time is selected, the sum of the time of all deleted work packages is added to the selected work package.

**Reproduce**

  - Delete work packages in [this filter](https://community.openproject.org/projects/devops/work_packages?query_props=%7B%22c%22:%5B%22id%22,%22type%22,%22status%22,%22subject%22,%22assigned_to%22%5D,%22t%22:%22parent:desc%22,%22f%22:%5B%7B%22n%22:%22status_id%22,%22o%22:%22*%22,%22t%22:%22list_status%22,%22v%22:%5B%5D%7D,%7B%22n%22:%22fixed_version_id%22,%22o%22:%22%253D%22,%22t%22:%22list_optional%22,%22v%22:%22695%22%7D%5D,%22pa%22:1,%22pp%22:20%7D)

**QA system**

  - community.openproject.org
  - OpenProject 5.0.8
