# Bug COMMS-307 - Reminders: saving without entering a date or time throws an error but also unnecessarily clears the other field

Project: Stream Communicator
Status: closed
URL: https://community.openproject.org/work_packages/COMMS-307

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module | Modules and project features / Notification center |
| Target versions | 16.1.0 |
| Observed in versions | 15.5.0 |
| Sprint |  |
| Backlog bucket |  |
| Bug found in version (deprecated) | 15.5.x |
| Requires doc change | No |
| Accessibility | No |
| Pull preview |  |
| List |  |
| Labels |  |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable |  |
| Product manager |  |
| Developers | Kabiru Mwenja |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Planning

| Attribute | Value |
| --- | --- |
| Relevance |  |

## Costs

| Attribute | Value |
| --- | --- |
| Votes |  |
| Work |  |
| Labor costs |  |

## Description

### Steps to reproduce

  - Go to a work package

  - Click on the 'Set reminder' button

  - Enter only a date or a time

  - (Optionally) enter a Note

  - Click save

### What is the buggy behavior?

  - If the time is not entered, an inline error is thrown (correct) but the previously-set Date field is cleared

  - If the date is not entered, an inline error is thrown (correct) but the previously-set Time field is cleared

  - When the error is thrown and the user corrects this by entering the missing date or time, the error state continues to be displayed

(Please see attached screencast for example of how frustrating this can be)

### What is the expected behavior?

  - If either the required date/time fields are empty, do *not* clear the value of the other field on clicking Save

  - ~~When the in-error is displayed and the user corrects it by entering the missing information, dismiss the error~~
    
      - ~~Explore~~ `~~auto_check_src~~` ~~(~~[~~ref~~](https://primer.style/view-components/lookbook/pages/forms/inputs/text_field)~~) for this as a test~~ Handled separately in <mention class="mention" data-id="64654" data-type="work_package" data-text="###64654">###64654</mention>

*Note:* [*Quick set dates*](https://community.openproject.org/wp/60357) *will make reduce the probability of these errors being present, but we must nevertheless address them.*

### Screenshots and other files

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

### Environment information

**Community**  
**OpenProject 15.5**

**Browser:**  
Firefox Mac

**Language**  
EN
