Project

General

Profile

Actions

Defect #38636

open

NoMethodError when creating/updating an issue if all issue priorities are disabled and no default priority is set

Added by Go MAEDA 11 months ago. Updated 3 months ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Issues
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Affected version:

Description

NoMethodError is raised when creating or updating an issue if all of the following conditions are met:

  • All issue priorities are disabled
  • No default priority is set

Error when creating an issue:

NoMethodError (undefined method `id' for nil:NilClass):

app/models/issue.rb:2053:in `clear_disabled_fields'
app/controllers/issues_controller.rb:152:in `create'
lib/redmine/sudo_mode.rb:61:in `sudo_mode'

Error when updating an issue:

NoMethodError (undefined method `position' for nil:NilClass):

app/models/issue_priority.rb:63:in `high?'
app/models/issue.rb:1124:in `notified_users'
app/models/journal.rb:171:in `notified_users'
app/models/mailer.rb:134:in `deliver_issue_edit'
app/models/journal.rb:357:in `send_notification'
app/controllers/issues_controller.rb:652:in `save_issue_with_child_records'
app/controllers/issues_controller.rb:207:in `update'
lib/redmine/sudo_mode.rb:61:in `sudo_mode'


Related issues

Related to Redmine - Patch #40194: Fix error in clear_disabled_fields method when IssuePriority is missingNew

Actions
Actions

Also available in: Atom PDF