# Bug OP-18179 - Error message when clicking on Details tab after editing items of the Weighted item list

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

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module | Administration, Modules and project features / Project attributes, Administration / Custom fields |
| Target versions | 16.6.1 |
| Observed in versions | 16.6.0 |
| Sprint | 16.6.1 |
| Backlog bucket |  |
| Bug found in version (deprecated) | 16.6.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 | Eric Schubert |
| 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 and go to admin/projects/project attributes

2.  Open a weighted item list

3.  Click on Items tab, click on **+Item** and cancel the form

4.  Click on Details tab

### What is the buggy behavior?

  - Error message appears and user is redirected to the custom fields index page

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

### What is the expected behavior?

1.  User should see the Details tab 

### Environment information

**OpenProject version**

**Core build**

[2cc96ed3907cef265fdc0f2c8b34dab08378935d](https://github.com/opf/openproject/commits/2cc96ed3907cef265fdc0f2c8b34dab08378935d)

**Product version**

[ac55c5e1d21f25919a56fd3717fcdf8c16f88007](https://github.com/opf/saas-openproject/commits/ac55c5e1d21f25919a56fd3717fcdf8c16f88007)

**Core version**

OpenProject 16.6.0

**Browser**

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

**Operating System**

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

### QA Information

  - The fix contained a vast addition of routes. In Ivana's screenshot one can see, that the left hand menu is showing the wrong menu item as active. This is another symptom of the reported bug.

  - With the fix every action within the items tab MUST maintain the correct context, which is what we should test.

  - So, for QA, we need to do some smoke testing on the actions in the items tab, of both **Custom fields** of type hierarchy and weighted item list AND **Project attributes** of type hierarchy and weighted item list.
