Content
Updated by Wieland Lindenthal about 1 month ago
### Before filing a report
_Before you file a report, please ensure you are running the latest version of OpenProject and_ 
_have searched for similar bug reports._
### Steps to reproduce
_Please write down the steps to reproduce. Try to write down all necessary preconditions (what permissions do you have, are other users involved?). Example:_
1. Login as a user with permissions to run cost reports (including full admins)
2. Go to the cost reports page of a project
3. Select a date range or last x days and user for labor cost filtering then hit `apply` to show the users' labor costs itemized
4. Observe message stating `There was an error handling the query.`
### What is the buggy behavior?
_Please describe the bug in as much detail as possible. Example:_
* Application logs say this is happening in:
```ruby
NoMethodError (undefined method 'migrate' for nil):
modules/reporting/app/controllers/cost_reports_controller.rb:165:in 'update'
```
* Somehow `@query` appears to be nil
### What is the expected behavior?
_Describe how the application should behave like. Example:_
1. Cost reports run correctly
2. Budgets show cost breakdowns as they did before v15 (presuming its related)
### Environment information
**OpenProject installation type**
* Packaged installation
* Arch
**OpenProject version**
_v15.0.2_
**Browser**
* [x] Chrome
* [x] Firefox
* [ ] Safari
* [ ] Mobile Safari
* [ ] Other (please specify)
**Operating System**
* [ ] Windows
* [ ] Mac OS X
* [ ] Mobile iOS
* [ ] Mobile Android
* [x] Linux (Arch)
* [ ] Chrome OS
* [ ] Other (please specify)
**Language**
English
_Before you file a report, please ensure you are running the latest version of OpenProject and_ 
_have searched for similar bug reports._
###
2. Go to the cost reports page of a project
3. Select a date range or last x days and user for labor cost filtering then hit `apply` to show the users' labor costs itemized
4. Observe message stating `There was an error handling the query.`
### What is the buggy behavior?
```ruby
NoMethodError (undefined method 'migrate' for nil):
modules/reporting/app/controllers/cost_reports_controller.rb:165:in 'update'
```
* Somehow `@query` appears to be nil
### What is the expected behavior?
_Describe how the application should behave like. Example:_
1. Cost reports run correctly
2. Budgets show cost breakdowns as they did before v15 (presuming its related)
### Environment information
**OpenProject installation type**
* Packaged installation
* Arch
**OpenProject version**
_v15.0.2_
**Browser**
* [x] Chrome
* [x] Firefox
* [ ] Safari
* [ ] Mobile Safari
* [ ] Other (please specify)
**Operating System**
* [ ] Windows
* [ ] Mac OS X
* [ ] Mobile iOS
* [ ] Mobile Android
* [x] Linux (Arch)
* [ ] Chrome OS
* [ ] Other (please specify)
**Language**
English