# Bug OP-9841 - Cannot log time entries when recent work package was removed and time entry assigned to project

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

## Open points

_No work packages_

## Details

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

### **Environment**:

Your OpenProject Version: Cloud Edition

### **Steps to reproduce:**

1.  Go to my page
2.  Add the time entry widget
3.  Log time for any work package
4.  Ensure it shows up under the recent tab
5.  Delete that work package, assign time entry to project
6.  Go back to widget, try to log more time

### **Actual Behavior**

Internal error shown as time entry work package link cannot be read

### **Expected Behavior**

Modal loads correctly
