# Bug OP-8512 - date entry of custom date field cannot be deleted

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

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module |  |
| Target versions | 11.2.3 |
| Observed in versions | 11.2.0 |
| Sprint | 11.2.3 |
| Backlog bucket |  |
| Bug found in version (deprecated) | 11.2.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 |  |
| 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: **OpenProject 11.2.1**

Windows 10 (64bit) / Firefox 87.0 / OpenProject language: German

### **Logs**

error in the browser console:

<figure class="image op-uc-figure"><div class="op-uc-figure--content"><img class="op-uc-image" src="/api/v3/attachments/20890/content"></div></figure>

### **Steps to reproduce:**

1.  define a custom date field for workpackages
2.  set a date in the custom date field of any workpackage
3.  try to delete the date which was set in step 2

### **Actual Behavior**

The date in a custom date field in a workpackage cannot be deleted.

### **Expected Behavior**

The date in a custom date field in a workpackage should be deleted if nothing is entered.   
I would expect the same behaviour of custom and non-custom date fields.
