Content
View differences
Updated by Attila Dombi 12 days ago
### Steps to reproduce
1. Have 2 work packages in a backlog bucket.
2. Close the First work package in the list.
3. Open the "Move" menu for the second work package.
4. Observe the possible move actions.
### What is the buggy behavior?
* There is a "Move up" and "Move to top" action present.
### What is the expected behavior?
1. There should be no "Move up" and "Move to top" actions, because the bucket has only 1 work package displayed.
### Note
This issue can be reproduced with having excluded work package types in the project too. https://github.com/opf/openproject/pull/23103/changes#diff-4ebb1691afbdf18567905f37173293d146bcbd1fb3d58bdba7ac2fadeffca275
### Technical notes:
* Use the `prev_id` when moving work packages up and down.
1. Have 2 work packages in a backlog bucket.
2. Close the First work package in the list.
3. Open the "Move" menu for the second work package.
4. Observe the possible move actions.
### What is the buggy behavior?
* There is a "Move up" and "Move to top" action present.
### What is the expected behavior?
1. There should be no "Move up" and "Move to top" actions, because the bucket has only 1 work package displayed.
### Note
This issue can be reproduced with having excluded work package types in the project too. https://github.com/opf/openproject/pull/23103/changes#diff-4ebb1691afbdf18567905f37173293d146bcbd1fb3d58bdba7ac2fadeffca275
### Technical notes:
* Use the `prev_id` when moving work packages up and down.