# Bug SPAR-228 - Non-working days can be choosen via date field

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

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module |  |
| Target versions | 15.5.1 |
| Observed in versions | 15.4.0 |
| Bug found in version (deprecated) | 15.4.x |
| Requires doc change | No |
| Accessibility | No |
| Pull preview |  |
| List |  |
| Labels |  |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable |  |
| Product manager |  |
| Developers | Henriette Darge |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Planning

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

## Costs

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

## Description

### Steps to reproduce

1.  Go to an manually scheduled WorkPackage
    
2.  Open the datepicker
    
    *   If &quot;Working days only&quot; is checked, continue with step 3
        
    *   If &quot;Working days only&quot; is not checked, check it and save
        
    *   Re-open the datepicker
        
3.  Change one of the dates to be on a non-workind day
    

### What is the buggy behavior?

*   The date is selected in the datepicker
    
*   There is no error
    
*   When saving, the date is magically changed without notice
    

<br>

<img class="image_resized op-uc-image op-uc-image_inline" style="width:321px;" src="/api/v3/attachments/384528/content">

### What is the expected behavior?

*   The date should be corrected directly in the datepicker before the user saved
    

###   

### Environment information

**OpenProject version**

_15.5_

**Browser**

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

**Operating System**

*   [ ] Windows
*   [x] Mac OS X
*   [ ] Mobile iOS
*   [ ] Mobile Android
*   [ ] Linux (please specify distro)
*   [ ] Chrome OS
*   [ ] Other (please specify)

**Language**

_English_
