Content
View differences
Updated by Ivana Šugić 3 months ago
### 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. Have a project with work packages and backlogs module active
2. Have at least three work packages
3. Select and bulk edit two work packages
4. Enter a string into the parent, which is NOT the ID (reproducible with #ID as well).
### What is the buggy behavior?
_Please describe the bug in as much detail as possible. Example:_
* Internal error returned
### What is the expected behavior?
_Describe how the application should behave like. Example:_
1. Regular error is shown that parent cannot be found
### **Logs**
```text
ERROR -- : [1684409132_8331487_9b86138a_acb7_4de6_ab96_545d0c958cbe] user=2 tenant=1684409132_8331487_9b86138a_acb7_4de6_ab96_545d0c958cbe shard=multitenancy-trials1 undefined method `ancestors' for nil:NilClass: undefined method `ancestors' for nil:NilClass
[NoMethodError] undefined method `ancestors' for nil:NilClass: modules/backlogs/lib/open_project/backlogs/patches/set_attributes_service_patch.rb:73:in `ancestor_chain'; modules/backlogs/lib/open_project/backlogs/patches/set_attributes_service_patch.rb:52:in `closest_story_or_impediment'; modules/backlogs/lib/open_project/backlogs/patches/set_attributes_service_patch.rb:43:in `set_attributes'; app/services/base_services/set_attributes.rb:44:in `perform'; app/services/base_services/base_callable.rb:40:in `block in call'; app/services/concerns/with_reversible_state.rb:53:in `assign_state'; app/services/base_services/base_callable.rb:39:in `call'; app/services/base_services/write.rb:60:in `set_attributes'; app/serv
```
###
_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. Have a project with work packages and backlogs module active
_Please describe the bug in as much detail as possible. Example:_
* Internal error returned
_Describe how the application should behave like. Example:_
1. Regular error is shown that parent cannot be found
```text
ERROR -- : [1684409132_8331487_9b86138a_acb7_4de6_ab96_545d0c958cbe] user=2 tenant=1684409132_8331487_9b86138a_acb7_4de6_ab96_545d0c958cbe shard=multitenancy-trials1 undefined method `ancestors' for nil:NilClass: undefined method `ancestors' for nil:NilClass
[NoMethodError] undefined method `ancestors' for nil:NilClass: modules/backlogs/lib/open_project/backlogs/patches/set_attributes_service_patch.rb:73:in `ancestor_chain'; modules/backlogs/lib/open_project/backlogs/patches/set_attributes_service_patch.rb:52:in `closest_story_or_impediment'; modules/backlogs/lib/open_project/backlogs/patches/set_attributes_service_patch.rb:43:in `set_attributes'; app/services/base_services/set_attributes.rb:44:in `perform'; app/services/base_services/base_callable.rb:40:in `block in call'; app/services/concerns/with_reversible_state.rb:53:in `assign_state'; app/services/base_services/base_callable.rb:39:in `call'; app/services/base_services/write.rb:60:in `set_attributes'; app/serv
```
###