# Bug OP-7984 - Editing project settings removes link to parent project for certain permission constellations

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

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module |  |
| Target versions | 11.3.0 |
| Observed in versions | 11.0.0 |
| Sprint | 11.3.0 |
| Backlog bucket |  |
| Bug found in version (deprecated) | 11.0.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

### **Environment**:

Your OpenProject Version: 11.0.3 Enterprise Edition

Operating System / Browser / OpenProject language: Server OS: Docker container on CentOS 7 / Client OS: Ubuntu 20.04 / Firefox 83 / English

### **Logs**

Are there errors in the browser console? ([Click here for information on how to open your browser's console](https://webmasters.stackexchange.com/a/77337)) For a local installation: Are there relevant logs output by `openproject logs` (packaged installation) or in a log/production.log or /var/log/openproject/ ? Please attach error output in these log files if applicable

\=\> No errors shown in browser console nor in openshift docker logs.

### **Steps to reproduce:**

1.  Project B is a subproject of A.
2.  User X is project admin (edit project, create subprojects permissions) for project B and a completely different and unrelated project C. (But does have project edit permission for parent project A.)
3.  Go to "project settings" for project B.
4.  The list "subproject of" will have two options: empty or project C.
5.  Make any changes (e.g. to the description or the project name) but leave "subproject of" as it is (e.g. empty) and hit "Save".

### **Actual Behavior**

The description is changed and the project B loses the link to the former parent A.

### **Expected Behavior**

The "subproject of" field shows project A as the correct parent project.

If the "subproject of " field is untouched, the description is changed, the parent link is not changed.
