# Bug OP-17094 - Project identifier cannot be updated if a required project attribute is created

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

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module | Frontend components and Primer design system, Modules and project features / Project settings |
| Target versions | 16.6.0 |
| Observed in versions | 16.0.0 |
| Sprint | 16.6.0 |
| Backlog bucket |  |
| Bug found in version (deprecated) | 16.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 | Alexander Coles |
| 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 permissions to create projects and projects attributes.

2.  Ensure there is at least one existing project in the system:
    
    1.  Click the green + in the top-left hand corner, then **+ Project**
    
    2.  Fill in **Name** (e.g. Example Project) and any other required fields.
    
    3.  Click on "Save"
    
    4.  The project should be saved. You should be redirected to the Project Overview page for the newly-created project.

3.  Create a **new project attribute that is required for all projects**
    
    1.  Click on the avatar in the right-hand corner, then **Administration**.
    
    2.  From the administration page, click **Projects**. Then click **Project attributes**.
    
    3.  Click the green **+ Project attribute.**
    
    4.  Fill in **Name** (e.g. New Project Attribute).
    
    5.  Select a default Section.
    
    6.  Check **Required for all Projects**
    
    7.  Click **Save**.

4.  Select the previously created project in the project selector at the top of the page.

5.  Click **Project** **settings**.

6.  Click **Change Identifier**

7.  Type in a new identifier and click **Update**.

### What is the buggy behavior?

  - An error message is displayed "New project attribute can't be blank"

  - (the project is in an inconsistent state)

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

### What is the expected behavior?

1.  The identifier should be updated.

### 

### Environment information

*Please check and fill out the following details to help us identify in what versions and distributions of OpenProject the error occurs*

**OpenProject installation type**

community.openproject.org

**OpenProject version**

*If you're not running on the cloud edition, please specify the version of OpenProject you're running. Example: v12.1.5*

**Browser**

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

**Operating System**

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

**Language**

en\_GB
