Project

General

Custom queries



Profile

Actions

Defect #21504

closed

IssuePriority.position_name not recalculated every time it should

Added by Felix Schäfer over 9 years ago. Updated about 9 years ago.

Status:
Closed
Priority:
Normal
Category:
Administration
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Fixed
Affected version:

Description

The position_name attribute of IssuePriority instances is currently only recalculated when the position of the IssuePriority instance changes source:/tags/3.2.0/app/models/issue_priority.rb#L22

However, the position_name should also be recalculated when the active attribute changes.

I would even argue that that operation is quick enough, and that changes to the IssuePriority list are not frequent and done by administrators, so that the recalculation of the position_name can be done on after_save without filtering.

Patch to follow.


Files

Added by Jean-Philippe Lang over 9 years ago

Revision 14988 (diff)

IssuePriority.position_name not recalculated every time it should (#21504).

Patch by Felix Schäfer.

Added by Jean-Philippe Lang over 9 years ago

Revision 14989 (diff)

IssuePriority.position_name not recalculated every time it should (#21504).

Patch by Felix Schäfer.

Actions

Also available in: Atom PDF