# Bug OP-7586 - Default value of a custom field not passed

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

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date | 2020-09-11 –  |
| Priority | High |
| Module |  |
| Target versions | 11.0.0 |
| Observed in versions | 10.6.0 |
| Sprint | 11.0.0 |
| Backlog bucket |  |
| Bug found in version (deprecated) | 10.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 |  |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Planning

| Attribute | Value |
| --- | --- |
| Relevance |  |

## Costs

| Attribute | Value |
| --- | --- |
| Votes |  |
| Work |  |
| Labor costs |  |

## Description

### **Environment**:

Your OpenProject Version: **10.6.5** (PostgreSQL) on Ubuntu 18.04 server

Operating System / Browser / Language: Windows 10, Opera, Greek

### **Logs**

Failed to load resource: the secure.gravatar.com/avatar/b102472fd97702222ce1d63bed65478a?default=404\&secure=true:1 Failed to load resource: the server responded with a status of 404 ()

DevTools failed to load SourceMap: Could not load content for <https://openproject.demo.gov.gr/assets/vendor/ckeditor/ckeditor.js.map>: HTTP error: status code 404, net::ERR\_HTTP\_RESPONSE\_CODE\_FAILURE

### **Steps to reproduce:**

1.  Go to page Administration -\> Custom fields -\> Projects
2.  Add a custom field of type text with any default value
3.  Create a new project. The custom field is empty. Leave it empty
4.  Look at the projects settings that the custom field is still empty
5.  If you also check that the custom field is Required, then you can't create the new project without first giving to the custom field a value.

### **Actual Behavior**

Default value is not saved in a custom field during the creation of a new project, while the custom field is empty.

### **Expected Behavior**

A custom field of type text should be pre-filled with the default value, during the creation of a new project.
