Proyecto

General

Perfil

User story #1498

Crash when try to copy issue

Añadido por Nikolay Moskvin hace 11 meses. Actualizado hace 11 meses.

Estado:
New
Prioridad:
Normal
Categoría:
Issues list & form
Versión prevista:
Blocked:
No
Alone:
No
Hitos:
Sprint:

Descripción

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

Histórico

#1 Actualizado por Nikolay Moskvin hace 11 meses

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?

Exportar a: Atom PDF