Content
View differences
Updated by Christophe Bliard about 1 year ago
### Steps to reproduce
1. Create two work packages following each other without gap
1. Saturday and Sunday are all non-working days
2. predecessor ends on Go to a Friday (2025-04-04)
3. successor WP in automatic scheduling mode where start date is automatically scheduled, starts on next Monday (2025-04-07, derived) and ends on next Wednesday (2025-04-09)
set by a predecessor:
2. Open the date picker for successor
3. Uncheck "Working days only" and change due Add a finish date to Thursday (2025-04-10) by clicking on the calendar
4. Save
5. Reopen the date picker
6. Change the finish date manually
7. Save
### What is the buggy behaviour?
* When unchecking "Working days only", start Finish date should have changed to Saturday (2025-04-05) in the date picker, as that's the soonest start date if it's ignoring non-working days
* After saving, the finish date was set to Tuesday (2025-04-08) which is wrong: Thursday (2025-04-10) was explicitly chosen to preserve the duration saved but not updated
### What is the expected behaviour?
1. Start Finish date is updated in the date picker when "Working days only" is toggled if appropriate
2. The selected finish date is used saved and duration is updated
### Why this bug?
It seems to happen when modifying both due date and "Working days only" on an automatically scheduled work package.
It happens only when changing due date and "Working days only", and when changing it modifies the start date.
When saving, it does not correctly take "Working days only" value into account to recompute the soonest start date, so the start date does not change and due date is set to the given date. Then, because due date is changed, a rescheduling occurs. The rescheduling correctly computes the correct start date, so it moves to the correct start date, keeping the duration previously computed, which shifts the due date by the same amount of days as the start date.
### Screenshots and other files
<img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/414921/content">
###
###
###
### Environment information
**OpenProject version**
Core build
[204a3ec0d2ad3ace739ef1f49134ee14bfb609d0](https://github.com/opf/openproject/commits/204a3ec0d2ad3ace739ef1f49134ee14bfb609d0)
Product version
[0e381ca55ef56dbc8dc3bd2e904af5ace7dd303b](https://github.com/opf/saas-openproject/commits/0e381ca55ef56dbc8dc3bd2e904af5ace7dd303b)
Core version
OpenProject 15.5.0
**Browser**
* [ ] Chrome
* [x] Firefox 136.4.0
* [ ] Safari
* [ ] Mobile Safari
* [ ] Other (please specify)
**Operating System**
* [x] Windows 11Pro
* [ ] Mac OS X
* [ ] Mobile iOS
* [ ] Mobile Android
* [ ] Linux (please specify distro)
* [ ] Chrome OS
* [ ] Other (please specify)
1. Create two work packages following each other without gap
1. Saturday and Sunday are all non-working days
2. predecessor ends on
3. successor
3. Uncheck "Working days only" and change due
4. Save
5. Reopen the date picker
6. Change the finish date manually
7. Save
### What is the buggy behaviour?
* When unchecking "Working days only", start
* After saving, the finish date was set to Tuesday (2025-04-08) which is wrong: Thursday (2025-04-10) was explicitly chosen to preserve the duration
### What is the expected behaviour?
1. Start
2. The selected finish date is used
### Why this bug?
It seems to happen when modifying both due date and "Working days only" on an automatically scheduled work package.
It happens only when changing due date and "Working days only", and when changing it modifies the start date.
When saving, it does not correctly take "Working days only" value into account to recompute the soonest start date, so the start date does not change and due date is set to the given date. Then, because due date is changed, a rescheduling occurs. The rescheduling correctly computes the correct start date, so it moves to the correct start date, keeping the duration previously computed, which shifts the due date by the same amount of days as the start date.
### Screenshots and other files
<img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/414921/content">
###
###
###
### Environment information
**OpenProject version**
Core build
[204a3ec0d2ad3ace739ef1f49134ee14bfb609d0](https://github.com/opf/openproject/commits/204a3ec0d2ad3ace739ef1f49134ee14bfb609d0)
Product version
[0e381ca55ef56dbc8dc3bd2e904af5ace7dd303b](https://github.com/opf/saas-openproject/commits/0e381ca55ef56dbc8dc3bd2e904af5ace7dd303b)
Core version
OpenProject 15.5.0
**Browser**
* [ ] Chrome
* [x] Firefox 136.4.0
* [ ] Safari
* [ ] Mobile Safari
* [ ] Other (please specify)
**Operating System**
* [x] Windows 11Pro
* [ ] Mac OS X
* [ ] Mobile iOS
* [ ] Mobile Android
* [ ] Linux (please specify distro)
* [ ] Chrome OS
* [ ] Other (please specify)