# Bug OP-7493 - Cost types: Unable to add a new cost type

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

## Open points

_No work packages_

## Details

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

### **Environment**:

Your OpenProject Version: 10.6

Operating System / Browser / Language:  Mac / Chrome

### **Logs**

"An invalid form control with name='cost\_type\[new\_rate\_attributes\]\[INDEX\]\[valid\_from\]' is not focusable."

"new:1 An invalid form control with name='cost\_type\[new\_rate\_attributes\]\[INDEX\]\[rate\]' is not focusable."

![](/api/v3/attachments/18816/content)

### **Steps to reproduce:**

1.  Go to Administration
2.  Click on Time and Cost
3.  Click on Cost types
4.  Click on the button + Cost type

### **Actual Behavior**

After filling the form, clicking on the Save button does nothing.

### **Expected Behavior**

It should create a new cost type
