Actions
Defect #42066
closedNoMethodError exception occurs in IssuePriority#high and #low when both default and active priorities are absent
Start date:
Due date:
% Done:
0%
Estimated time:
Resolution:
Fixed
Affected version:
Description
A NoMethodError exception occurs when there is no default issue priority and all issue priorities are inactive, and IssuePriority#high
or IssuePriority#low
is called. his issue affects the process of generating the email notification recipients in Issue#notified_users
. Consequently, the error can lead to an Internal Server Error being displayed in the user’s web browser during issue updates.
The attached patch updates IssuePriority#high and IssuePriority#low to return false when self.class.default_or_middle is nil, avoiding exceptions.
Files
Related issues
Updated by Go MAEDA 11 days ago
- Related to Defect #40860: Creating a new issue fails with an internal error if no issue priorities are defined added
Actions