User story #1498
Crash when try to copy issue
Status:
New
Priority:
Normal
Category:
Issues list & form
Target version:
-
Blocked:
No
Alone:
No
Milestones:
Sprint:
Description
When I try to get issues/XXXX/copy, I got following error:
redmine_1 | RuntimeError (): redmine_1 | plugins/scrum/lib/scrum/issue_patch.rb:119:in `story_points=' redmine_1 | app/models/issue.rb:436:in `assign_attributes' redmine_1 | app/models/issue.rb:440:in `attributes=' redmine_1 | app/models/issue.rb:266:in `copy_from' redmine_1 | app/controllers/issues_controller.rb:494:in `build_new_issue_from_params' redmine_1 | plugins/redmine_checklists/lib/redmine_checklists/patches/issues_controller_patch.rb:42:in `build_new_issue_from_params_with_checklist' redmine_1 | lib/redmine/sudo_mode.rb:63:in `sudo_mode'
Expected:
The issue XXXX should be copied to new issue
Updated by Nikolay Moskvin about 7 years ago
The issue related `redmine_checklists`, we have exception in else block:
def story_points=(value)
if has_story_points? and
!((custom_field_id = Scrum::Setting.story_points_custom_field_id).nil?) and
!((custom_value = self.custom_value_for(custom_field_id)).nil?) and
custom_value.custom_field.valid_field_value?(value)
custom_value.value = value
custom_value.save!
else
raise
end
end
Could you help me to fix it?