Content
Updated by Christophe Bliard 5 days ago
### Steps to reproduce [https://appsignal.com/openproject-gmbh/sites/63237184d2a5e463ef717e6e/exceptions/incidents/1765](https://appsignal.com/openproject-gmbh/sites/63237184d2a5e463ef717e6e/exceptions/incidents/1765)
1. Open a work package page
2. On the work package page, click on "Work" 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 Backtrace: app/components/work_packages/progress/base_modal_component.rb:97:in '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) https://appsignal.com/openproject-gmbh/sites/63237184d2a5e463ef717e6e/exceptions/incidents/1765/samples/63237184d2a5e463ef717e6e-649608806748230468017412768001
1. Open a work package page
2. On the work package page, click on "Work" 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)