# Bug OP-11296 - Creating work package starting on a non-working day should not be possible

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

## Open points

_No work packages_

## Details

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

1.  On the work package creation page, open the date picker
2.  Unselect &quot;working days only&quot;
3.  Select dates from saturday to monday (duration is 3 days)
4.  Toggle &quot;working days only&quot; so that non-working days are not selectable anymore

### What is the buggy behavior?

*   start date is still saturday

### What is the expected behavior?

*   start date should have moved to monday
*   additionally, saving works too (should fail as non working day only is active)
*   it does work as expected if the work package already exists

### Screenshots and other files

Screen recording attached

### Environment information

**OpenProject installation type**

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

**OpenProject version**

<figure class="table op-uc-figure_align-center op-uc-figure"><table class="op-uc-table"><tbody><tr class="op-uc-table--row"><td class="op-uc-p op-uc-table--cell">12.4.0.430099c275</td><td class="op-uc-p op-uc-table--cell">Mon, 17 Oct 2022 07:59:28 GMT <a class="op-uc-link" href="https://github.com/opf/saas-openproject/commit/430099c275">430099c275</a></td></tr></tbody></table></figure>

**Browser**

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