# Bug OP-18062 - Base Amount Field: Error 500 on Empty Submission, Expected Behavior - Reset to Zero

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

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module | Modules and project features / Costs and budgets |
| Target versions | 16.6.0 |
| Observed in versions | 16.5.0 |
| Sprint | 16.6.0 |
| Backlog bucket |  |
| Bug found in version (deprecated) | 16.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 | Klaus Zanders |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Planning

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

## Costs

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

## Description

### Steps to reproduce

<br>

1.  Login as a user with permissions to manage budgets in a project
    
2.  Navigate to a project and create a budget
    
3.  Add a _base amount_ (e.g. 1000)
    
4.  Save
    
5.  Click on _Update_
    
6.  Delete the value (1000) from the _base amount_ field
    
7.  Click on &nbsp;\[✔️ submit\]
    

### What is the buggy behavior?

<br>

*   An error 500 is displayed; it is not possible to remove the _base amount_
    
    Note: It is possible to change the base amount though. Error seems only to appear when that field should revert to NULL.
    

### What is the expected behavior?

<br>

1.  Removing all values from this field sets back the _base amount_ to 0
    

### **Logs**

<br>

`[Error 500] An error occurred on the page you were trying to access. If you continue to experience problems please contact your TENANT administrator for assistance.`

###   

### Screenshots and other files

<br>

See attached base-amount.mp4

### Environment information

<br>

**OpenProject installation type**

*   Hosted cloud edition
    
    <br>
    

**OpenProject version**

_16.5.1_

**Browser**

*   [ ] Chrome
*   [ ] Firefox
*   [ ] Safari
*   [ ] Mobile Safari
*   [x] Other (Vivaldi)

**Operating System**

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

**Language**

_EN/DE tested_
