# Bug OP-14633 - Work Package Table crashes when grouped by integer and sums are displayed

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

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | High |
| Module |  |
| Target versions | 13.4.1 |
| Observed in versions | 13.4.0 |
| Sprint | 13.4.1 |
| Backlog bucket |  |
| Bug found in version (deprecated) | 13.4.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

### Steps to reproduce

1.   Set up two custom fields: 1x integer (e.g. Plan-ID) / 1x Float (e.g. Betrag)
2.  Add them to a work package type and enable them in a project
3.  navigate to that project and create at least two new work packages from that type. Make sure to add values to the custom fields you just created (Plan-ID and Betrag).
4.  Filter you work package table so that just these new work packages are displayed
5.  Configure the view as following:

<!-- end list -->

  - Group by = integer custom field (e.g. Plan-ID)
  - Display settings = display sums

### What is the buggy behavior?

*Please describe the bug in as much detail as possible. Example:*

  - The work package table wont load anymore. You will receive an "internal error" error code

### What is the expected behavior?

*Describe how the application should behave like. Example:*

1.  It is possible to group you list based on an integer custom field and display sums at the same time

### **Logs**

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

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

### Screenshots and other files

WITHOUT grouping by Plan-ID (=integer) - everything as expected

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

Configuration that leads to the error:

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

### Environment information

*Please check and fill out the following details to help us identify in what versions and distributions of OpenProject the error occurs*

**OpenProject installation type**

- [x] Hosted cloud edition
- [ ] Packaged installation
    - What distribution?
- [ ] Docker All-in-one container
- [ ] Docker-compose installation
- [ ] Other (please specify)

**OpenProject version**

*If you're not running on the cloud edition, please specify the version of OpenProject you're running. Example: v12.1.5*

**Browser**

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

**Language**

*EN and DE tested*
