# Bug OP-3861 - Bulk deleting work packages causes 500

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

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module |  |
| Target versions | 7.1.0 |
| Observed in versions |  |
| Sprint | 7.1.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

From logs:

``` 

ActionView::Template::Error
WorkPackages::BulkController#destroy

 No route matches {:action=>"index", :controller=>"work_packages", :layout=>nil, :project_id=>nil} missing required keys: [:project_id]
```

This was caused when deleting a number of work packages having associated time entries and being from a set of projects.
