Content
View differences
Updated by Christophe Bliard about 1 year ago
### 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
* 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.
**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