# Bug OP-14455 - Removing logged activity via spent time widget freezes the site and destroys spent time widget

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

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module |  |
| Target versions | 14.3.0 |
| Observed in versions | 13.3.0 |
| Sprint | 14.3.0 |
| Backlog bucket |  |
| Bug found in version (deprecated) | 13.3.x |
| 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 | Jens Ulferts |
| 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

_Please write down the steps to reproduce. Try to write down all necessary preconditions (what permissions do you have, are other users involved?). Example:_

1.  Navigate to a project over view page
2.  add a spent time (last 7 days) widget
3.  navigate to work packages of this project and log time for a random work package
4.  go back to the project overview and click on edit next to the just added logged time
5.  remove the activity by clicking the x next to it
6.  click on save

### What is the buggy behavior?

_Please describe the bug in as much detail as possible. Example:_

*   The window freezes and OP must be closed completely
*   All entries are removed from the widget
*   the widget cannot be removed anymore
*   your RAM usage increases heavily

### What is the expected behavior?

_Describe how the application should behave like. Example:_

1.  You either should get a message which indicates that you need to select an activity (and a possibility to choose a new activity) OR the logged time just gets adjusted with a - entry for activity.

### **Logs**

<img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/93161/content">

  

### Screenshots and other files

  

Before removing the activity:

<img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/93162/content">

Removed activity and before clicking on save:

<img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/93163/content">

  

After saving:

  

<img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/93164/content">

  

### Environment information

_Please check and fill out the following details to help us identify in what versions and distributions of OpenProject the error occurs_

**OpenProject installation type**

*   [x] Hosted cloud edition (not tested on-premises)
*   [ ] Packaged installation
    *   What distribution?
*   [ ] Docker All-in-one container
*   [ ] Docker-compose installation
*   [ ] Other (please specify)

**OpenProject version**

13.3.1

**Browser**

*   [ ] Chrome
*   [x] Firefox (123.0)
*   [ ] Safari
*   [ ] Mobile Safari
*   [x] Other (please specify) -&gt; Edge (122.0.2365.59)

  

**Operating Systems tested**

Windows 10  
Windows 11
