Content
View differences
Updated by Jens Ulferts about 1 year ago
**Steps to reproduce**
* Click to create a new work package of any type (not sure if milestone types behave differently). Do not yet save the work package
* Click on the date field to open the date picker
* Click on the "Manual" toggle that is already selected.
**Buggy behaviour**
* Full screen 500 error message
**Expected behaviour**
* Clicking on the already selected "Manual" mode should have no effect at all.
**Appsignal**
[https://appsignal.com/openproject-gmbh/sites/632371afd2a5e463ef717ecb/exceptions/incidents/6620%5D](https://appsignal.com/openproject-gmbh/sites/632371afd2a5e463ef717ecb/exceptions/incidents/6620%5D)
#### Message
```ruby
Couldn't find WorkPackage with 'id'=new [WHERE "work_packages"."id" IN (SELECT "work_packages"."id" FROM "work_packages" INNER JOIN "projects" ON "projects"."id" = "work_packages"."project_id" INNER JOIN "enabled_modules" ON "projects"."id" = "enabled_modules"."project_id" AND "enabled_modules"."name" IN ('work_package_tracking') AND "projects"."active" = TRUE WHERE "projects"."active" = TRUE)]
```
#### Backtrace
```text
app/controllers/work_packages/date_picker_controller.rb:179 WorkPackages::DatePickerController#find_work_package
vendor/plugins/openproject-multitenancy/lib/multitenancy/elevators/mapped_domain_elevator.rb:106 block in Multitenancy::Elevators::MappedDomainElevator#call_tenant
```
Appsignal Sample: https://appsignal.com/openproject-gmbh/sites/632371afd2a5e463ef717ecb/exceptions/incidents/6620/samples/632371afd2a5e463ef717ecb-1805318680549186371417423685002
* Click to create a new work package of any type (not sure if milestone types behave differently). Do not yet save the work package
* Click on the date field to open the date picker
* Click on the "Manual" toggle that is already selected.
**Buggy behaviour**
* Full screen 500 error message
**Expected behaviour**
* Clicking on the already selected "Manual" mode should have no effect at all.
**Appsignal**
[https://appsignal.com/openproject-gmbh/sites/632371afd2a5e463ef717ecb/exceptions/incidents/6620%5D](https://appsignal.com/openproject-gmbh/sites/632371afd2a5e463ef717ecb/exceptions/incidents/6620%5D)
#### Message
```ruby
Couldn't find WorkPackage with 'id'=new [WHERE "work_packages"."id" IN (SELECT "work_packages"."id" FROM "work_packages" INNER JOIN "projects" ON "projects"."id" = "work_packages"."project_id" INNER JOIN "enabled_modules" ON "projects"."id" = "enabled_modules"."project_id" AND "enabled_modules"."name" IN ('work_package_tracking') AND "projects"."active" = TRUE WHERE "projects"."active" = TRUE)]
```
#### Backtrace
```text
app/controllers/work_packages/date_picker_controller.rb:179 WorkPackages::DatePickerController#find_work_package
vendor/plugins/openproject-multitenancy/lib/multitenancy/elevators/mapped_domain_elevator.rb:106 block in Multitenancy::Elevators::MappedDomainElevator#call_tenant
```
Appsignal Sample: https://appsignal.com/openproject-gmbh/sites/632371afd2a5e463ef717ecb/exceptions/incidents/6620/samples/632371afd2a5e463ef717ecb-1805318680549186371417423685002