# Bug OP-14663 - Visible=false project attribute values are deleted when a non-admin user edits the attributes

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

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | High |
| Module |  |
| Target versions | 14.0.0 |
| Observed in versions |  |
| Sprint | 14.0.0 |
| 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

1.  Have 2 project attributes enabled in a project.
2.  Set 1 attribute to visible=false in the project attributes admin settings (admin/settings/project\_custom\_fields/\<id\>/edit).
3.  Set values for both custom fields with an admin on the project Overview page.
4.  Edit the the visible project attributes's value on the Overview with a project admin user who can only see the visible attribute.
5.  Login with the admin and see the Project Overview, the invisible attribute's value is deleted.

### What is the buggy behaviour?

*Please describe the bug in as much detail as possible. Example:*

  - The invisible project attribute's value is being deleted when a user who cannot see it edits the project attributes. This is incorrect.

### What is the expected behavior?

*Describe how the application should behave like. Example:*

1.  The invisible attribute's value should be preserved, when users who cannot see it edit the project attributes.

### Screenshots and other files

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