# Bug FPCV-41 - Admin only static and non affected calculated values are missing from calculations

Project: Feature Project - Calculated value
Status: closed
URL: https://community.openproject.org/work_packages/FPCV-41

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module |  |
| Target versions | 16.4.0 |
| Observed in versions |  |
| Bug found in version (deprecated) |  |
| Requires doc change | No |
| Accessibility | No |
| Pull preview |  |
| List |  |
| Labels |  |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable |  |
| Product manager |  |
| Developers | Ivan Kuchin |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Planning

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

## Costs

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

## Description

### Steps to reproduce

1.  As admin:
    
    1.  Create custom fields (names are important only for identification):
        
        1.  int or float custom field `a` which is visible to everyone
            
        2.  int or float custom field `b` which is visible to admin only
            
        3.  calculated value field `c` which is visible to admin only with formula `1 + 1`
            
        4.  calculated value field `x` which is visible to everyone with formula `a + b`
            
        5.  calculated value field `y` which is visible to everyone with formula `a + c`
            
    2.  Enable all those custom fields for a project
        
    3.  Set values `a` and `b`
        
2.  As project admin:
    
    1.  Change the only editable value `a`
        

### What is the buggy behaviour?

*   Calculated values `x` and `y` get erased
    

### What is the expected behaviour?

1.  Calculated values `x` and `y` get correctly calculated from the formulas
    

### Environment information

**OpenProject version**

v16.3
