# Bug OP-10971 - Custom fields are enabled on project creation

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

## Open points

_No work packages_

## Details

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

### Steps to reproduce

1.  Add a couple custom fields to your OP instance
2.  Create a template project
    1.  Make sure the custom fields are contained in a work package type, and that ths work package type is active within the template project
    2.  Make sure the custom fields are disabled in the template project
3.  Create a new project using that project as a template
4.  Look at the Custom Fields in the project settings

Note: this worked fine until 12.2.

### What is the buggy behavior?

My template project has no custom fields enabled:

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

But when I create a project off of that template, all the custom fields come in ticked, causing errors on project creation:

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

and the custom fields are all included in the project

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

### What is the expected behavior?

1.  Custom fields should take the status as defined in the template.

### 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**

- [x] Hosted cloud edition
- [ ] Packaged installation
    - What distribution?
- [ ] Docker All-in-one container
- [ ] Docker-compose installation
- [ ] Other (please specify)

**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
- [ ] Safari
- [ ] Mobile Safari
- [ ] Other (please specify)

**Language**

*Please specify the browser language and the language of the OpenProject user for which the bug ocurred.*
