# Bug OP-20417 - Deleted custom field causes "You do not have permission to see this journal activity" message

Project: OpenProject
Status: tested
URL: https://community.openproject.org/work_packages/OP-20417

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | High |
| Module | Modules and project features / Activity, Modules and project features / Comments and activity, Modules and project features / Work packages |
| Target versions | 17.9.2 |
| 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 |  |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable |  |
| Product manager |  |
| Developers | Oliver Günther |
| 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 work package with custom field value (list for example)
    
2.  Delete the custom field
    
3.  After journal aggregation create another comment or change
    

### What is the buggy behavior?

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

*   Activity shows &quot;You do not have permission to see this journal activity&quot;
    
    *   For example [https://community.openproject.org/projects/MEET/work\_packages/MEET-107/activity](https://community.openproject.org/projects/MEET/work_packages/MEET-107/activity)
        
*   This is due to a custom field being deleted. Journal data: `"custom_fields_392" => ["894", nil]}`
    
    <br>
    

### What is the expected behavior?

_Describe how the application should behave like. Example:_

1.  The activity line is hidden
