# Bug OP-11284 - Duration field is automatically cleared for a WP in "Follower" relation

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

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | High |
| Module |  |
| Target versions |  |
| Observed in versions | 12.3.0 |
| Sprint |  |
| Backlog bucket |  |
| Bug found in version (deprecated) | 12.3.x |
| 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.  Login to QA Edge environment.
2.  Create 2 work packages with predecessor-follower relation that only have duration set.
3.  Click on the date picker for the predecessor WP.
4.  Set the start date -&gt; end date is automatically calculated as we already had duration.
5.  Observe that the start date of the follower WP is calculated to be the next day after the finish date of the predecessor.
6.  Check the duration of the follower WP.

### What is the buggy behavior?

*   Duration is cleared on the follower WP as soon as the start date was calculated.

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

### What is the expected behavior?

1.  The duration should not be cleared on the follower.
2.  As start date is calculated, and if duration of the follower is kept, end date should be automatically calculated just like for predecessor WP.

### Environment information

_Please check and fill out the following details to help us identify in what versions and distributions of OpenProject the error occurs_

**OpenProject installation type**

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