# Bug OP-11483 - Error when switching to milestone type and current date configured as start date

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

## Open points

_No work packages_

## Details

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

### 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.  Go to administration \> Work packages \> Settings
2.  Enable option "Use current date as start date for new work packages"
3.  Go to work package page in project.
4.  Click on link "+ Create new work package" (and make sure that default type Task (or other non-milestone type) is selected by default).
5.  Enter subject (don't confirm yet).
6.  Change type to Milestone type.

### What is the buggy behavior?

  - Error message shown:

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

### What is the expected behavior?

1.  No error message.

### Environment information

**OpenProject installation type**

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

**OpenProject version**

12.3.2

**Browser**

- [x] Chrome
- [ ] Firefox
- [ ] Safari
- [ ] Mobile Safari
- [ ] Other (please specify)
