# Bug OP-11249 - After moving a work package card on the calendar, update dates based on its duration

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

## 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**

_Please write down the steps to reproduce. Try to write down all necessary preconditions (what permissions do you have, are other users involved?). Example:_

1.  Login as a user with permission to change team planner 
2.  Go to the team planners page
3.  Move a WP single card to the right or left to update it

### **What is the buggy behavior?**

_Please describe the bug with as most details as possible. Example:_

*   On the network tab, you can see that for the payload we are sending the start and end date, so the calculations are only based on selected dates not the duration of WP
