# Bug OP-17115 - NameError in CostReportsController#index

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

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module | Modules and project features / Time tracking |
| Target versions | 16.2.0 |
| Observed in versions | 16.1.0 |
| Sprint | 16.2.0 |
| Backlog bucket |  |
| Bug found in version (deprecated) | 16.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 | 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

??&nbsp;

### What is the buggy behavior?

*   Appsignal error:
    
    *   [https://appsignal.com/openproject-gmbh/sites/674718f1d2a5e4a7cb8b2298/exceptions/incidents/1038](https://appsignal.com/openproject-gmbh/sites/674718f1d2a5e4a7cb8b2298/exceptions/incidents/1038)
        
    *   [https://appsignal.com/openproject-gmbh/sites/674718f1d2a5e4a7cb8b2298/exceptions/incidents/1039](https://appsignal.com/openproject-gmbh/sites/674718f1d2a5e4a7cb8b2298/exceptions/incidents/1039)
        
*   Message: `uninitialized constant CostQuery::GroupBy::Undefined`
    
*   Backtrace: modules/reporting/app/models/cost\_query.rb:161 in Module#const\_get
    

### What is the expected behavior?

_??_

###
