# Bug OP-18971 - User can input anything in the default cost field

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

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module | Modules and project features / Costs and budgets, Administration, Frontend components and Primer design system |
| Target versions | 17.3.0 |
| Observed in versions | 17.1.0 |
| Sprint | 17.3.0 |
| Backlog bucket |  |
| Bug found in version (deprecated) | 17.1.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 | Jens Ulferts |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Planning

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

## Costs

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

## Description

### Steps to reproduce

### 

#### 

1.  Go to Administration \> Times and Costs \> Defaults \> Costs tab

2.  In both 'Currency' and 'Format of currency', add emojis

3.  Save

### What is the buggy behaviour?

  - Save is successful 

### What is the expected behaviour?

  - Currency:
    
      - Add caption "This is the unit of currency. It be a three-letter ISO code like EUR, USD or JPY or a symbol like €, $ or ¥."

  - Format of currency:
    
      - Replace with a select field
        
          - Label: "Currency format"
        
          - Options:
            
              - "Before the number (eg. EUR 100)"
            
              - "After the number (eg. 100 EUR)"
        
          - No caption
            
            <br>

### 

### Screenshots and other files

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

### Environment information

**OpenProject version**

Core build

[eef7c5eccf63b767ec90e4cfac91aa5ce9ca2b62](https://qa.openproject-stage.com/external_redirect?url=https%3A%2F%2Fgithub.com%2Fopf%2Fopenproject%2Fcommits%2Feef7c5eccf63b767ec90e4cfac91aa5ce9ca2b62)

Product version

[ecfbdd2facf738f725a89cda20e6909aaa4b155f](https://qa.openproject-stage.com/external_redirect?url=https%3A%2F%2Fgithub.com%2Fopf%2Fsaas-openproject%2Fcommits%2Fecfbdd2facf738f725a89cda20e6909aaa4b155f)

Core version

OpenProject 17.2.0

**Browser**

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

**Operating System**

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