Content
View differences
Updated by Hagen Schink over 12 years ago
**QA system**
- preview.openproject.org version: 5.0.pre11
- Core version: 3.0.0pre25
**Expected behavior**
- When navigating to a project the selected project is displayed.
**Actual behavior**
- When selecting certain projects (e.g. “KT project”) an internal error is displayed.
**Steps to reproduce**
1. Select “Projects” in top navigation
2. Select a project (e.g. KT project)
3. (an internal error is displayed)
### Details (taken from \#2636)
The error is because there are work packages with ‘null’ as their type. Probably this is due to an error in the migration (maybe the non-type is not assigned to the corresponding project?)
WorkPackage.all.select {|w| w.type.nil?}.map {|w| w.id}
=> [2655, 2622, 2584, 2730, 2656, 2673, 2722, 2714]
WorkPackage.all.select {|w| w.type.nil?}.map {|w| w.project.identifier}
=> ["valvula-za16", "sandbox-curval-metalworks", "sandbox", "kt-project", "valvula-za16", "valvula-za16", "valvula-za16", "mellanox-sandbox"]
- preview.openproject.org version: 5.0.pre11
- Core version: 3.0.0pre25
**Expected behavior**
- When navigating to a project the selected project is displayed.
**Actual behavior**
- When selecting certain projects (e.g. “KT project”) an internal error is displayed.
**Steps to reproduce**
1. Select “Projects” in top navigation
2. Select a project (e.g. KT project)
3. (an internal error is displayed)
### Details (taken from \#2636)
The error is because there are work packages with ‘null’ as their type. Probably this is due to an error in the migration (maybe the non-type is not assigned to the corresponding project?)
WorkPackage.all.select {|w| w.type.nil?}.map {|w| w.id}
=> [2655, 2622, 2584, 2730, 2656, 2673, 2722, 2714]
WorkPackage.all.select {|w| w.type.nil?}.map {|w| w.project.identifier}
=> ["valvula-za16", "sandbox-curval-metalworks", "sandbox", "kt-project", "valvula-za16", "valvula-za16", "valvula-za16", "mellanox-sandbox"]