# Bug OP-7101 - Timeout / error 500 when setting current unit cost rate

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

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | High |
| Module |  |
| Target versions | 10.6.0 |
| Observed in versions | 10.5.0 |
| Sprint | 10.6.0 |
| Backlog bucket |  |
| Bug found in version (deprecated) | 10.5.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**:

OpenProject 10.5.1

Chrome

### **Logs**

``` text
The error log shows this:
May 7 22:10:18 openproject openproject-web-1.service[30652]: I, [2020-05-07T22:10:18.747351 #30757] INFO -- : method=GET path=/cost_types format=html controller=CostTypesController action=index status=200 duration=106.56 view=90.58 db=9.41 user=4
May 7 22:10:24 openproject openproject-web-1.service[30652]: E, [2020-05-07T22:10:24.835784 #30757] ERROR -- : [current_user=Tyler Hardison] undefined method `parse_number_string_to_number' for #<CostTypesController:0x000055740ed18e18>: undefined method `parse_number_string_to_number' for #<CostTypesController:0x000055740ed18e18>
May 7 22:10:24 openproject openproject-web-1.service[30652]: I, [2020-05-07T22:10:24.853818 #30757] INFO -- : method=PUT path=/cost_types/1/set_rate format=html controller=CostTypesController action=set_rate status=500 duration=1848.52 view=15.65 db=5.34 user=4
```

### **Steps to reproduce:**

1.  Go to administration \> Budgets \> Cost types.
2.  Set an entry for "Cost rate".
3.  Save.

### **Actual Behavior**

Timeout / error 500:

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

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

### **Expected Behavior**

Cost rate adjusted properly
