# Bug SPAR-202 - I18n::ArgumentError in WorkPackages::ProgressController#edit

Project: Stream Planning and Reporting
Status: closed
URL: https://community.openproject.org/work_packages/SPAR-202

## Open points

_No work packages_

## Details

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

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable | Christophe Bliard |
| 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

1.  Open a work package page
    
2.  On the work package page, click on &quot;Work&quot; field value to open the progress modal
    
3.  While the progress modal is open, click in the search field in the top bar **and keep the mouse button pushed** (long click)
    

### What is the buggy behavior?

*   An error occurs
    
*   The progress modal is still there, hanging.
    

Screen capture attached: [bug\_focus\_search\_after\_opening\_progress\_modal.webm](https://community.openproject.org/attachments/700415/bug_focus_search_after_opening_progress_modal.webm)

### What is the expected behavior?

1.  No error
    

[https://appsignal.com/openproject-gmbh/sites/674718f1d2a5e4a7cb8b2298/exceptions/incidents/1098](https://appsignal.com/openproject-gmbh/sites/674718f1d2a5e4a7cb8b2298/exceptions/incidents/1098)

aws-de-vips1  
6th Jun 02:13 (UTC+2)  
version 16.0.1

**Error Message**

```text
The selected field is not one of estimatedTime, work_package[estimated_hours], remainingTime, work_package[remaining_hours], work_package[status_id], statusId, work_package[done_ratio], percentageDone, .
```

**Backtrace**

```text
app/components/work_packages/progress/base_modal_component.rb:97 WorkPackages::Progress::BaseModalComponent#map_field
app/components/work_packages/progress/base_modal_component.rb:65 WorkPackages::Progress::BaseModalComponent#initialize
app/components/work_packages/progress/work_based/modal_body_component.rb:39 WorkPackages::Progress::WorkBased::ModalBodyComponent#initialize
app/controllers/work_packages/progress_controller.rb:112 Class#new
app/controllers/work_packages/progress_controller.rb:112 WorkPackages::ProgressController#progress_modal_component
app/controllers/work_packages/progress_controller.rb:51 WorkPackages::ProgressController#edit
```

**Parameters**

request path: `/work_packages/970/progress/edit`

```json
{
  "action": "edit",
  "controller": "work_packages/progress",
  "field": "global-search--input",
  "work_package": {
    "done_ratio": "",
    "done_ratio_touched": "false",
    "estimated_hours": "",
    "estimated_hours_touched": "false",
    "initial": {
      "done_ratio": "",
      "estimated_hours": "",
      "remaining_hours": ""
    },
    "remaining_hours": "",
    "remaining_hours_touched": "false"
  },
  "work_package_id": "970"
}
```

Appsignal Sample: [https://appsignal.com/openproject-gmbh/sites/674718f1d2a5e4a7cb8b2298/exceptions/incidents/1098/samples/674718f1d2a5e4a7cb8b2298-649608806748230468017491680002](https://appsignal.com/openproject-gmbh/sites/674718f1d2a5e4a7cb8b2298/exceptions/incidents/1098/samples/674718f1d2a5e4a7cb8b2298-649608806748230468017491680002)
