# Bug SPAR-258 - Moving single date work packages in the Calendar adds the second date without user intent

Project: Stream Planning and Reporting
Status: closed
URL: https://community.openproject.org/work_packages/SPAR-258

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module | Modules and project features / Relations and scheduling, Modules and project features / Calendar |
| Target versions | 16.0.0 |
| Observed in versions | 15.5.0 |
| 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 | Christophe Bliard |
| Designer | Parimal Satyal |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Planning

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

## Costs

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

## Description

### Steps to reproduce

  - Create a new work package with just a single date
    
      - This can be only a start date or only a finish date

### What is the buggy behavior?

  - In the Calendar module, when moving a work package by dragging it to a new date, both start and finish dates are set to the new date

  - When only a start date is set, it's not even possible to move it: it displays the error "Finish date is no valid date - YYYY-MM-DD expected."

### What is the expected behavior?

  - Only the date that exists should be updated; the field that is empty should stay empty
    
      - **Note:** In the Gantt module, moving single-date work packages module behaves this way, as expected. The Calendar module should be consistent with that.

  - No errors displayed when only a start date is set.

### Screenshots and other files

**In Calendar view, moving a single-date work package with only a Finish date adds a Start date:**

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

**In Gantt view, moving a single-date work package updates only the date that exists:**

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

### Environment information

**QA Stage**  
**OpenProject 15.5.0**

Core build: [090db63fa217879e7f219ab79225f21d23b7c18e](https://github.com/opf/openproject/commits/090db63fa217879e7f219ab79225f21d23b7c18e)  
Product version: [a1a0616056903739690e562fb641d6ba1346e3e5](https://github.com/opf/saas-openproject/commits/a1a0616056903739690e562fb641d6ba1346e3e5)

**Browser:**  
Firefox Mac

**Language**  
EN
