https://www.redmine.org/https://www.redmine.org/favicon.ico?16793021292015-12-13T20:06:33ZRedmineRedmine - Defect #21504: IssuePriority.position_name not recalculated every time it shouldhttps://www.redmine.org/issues/21504?journal_id=679032015-12-13T20:06:33ZFelix Schäfer
<ul><li><strong>File</strong> <a href="/attachments/14847">21504-recalculate_issue_priority_position_name_on_active_change.patch</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/14847/21504-recalculate_issue_priority_position_name_on_active_change.patch">21504-recalculate_issue_priority_position_name_on_active_change.patch</a> added</li></ul> Redmine - Defect #21504: IssuePriority.position_name not recalculated every time it shouldhttps://www.redmine.org/issues/21504?journal_id=680542015-12-20T12:47:00ZJean-Philippe Langjp_lang@yahoo.fr
<ul><li><strong>Category</strong> set to <i>Administration</i></li><li><strong>Status</strong> changed from <i>New</i> to <i>Resolved</i></li><li><strong>Assignee</strong> set to <i>Jean-Philippe Lang</i></li><li><strong>Target version</strong> set to <i>3.1.4</i></li><li><strong>Resolution</strong> set to <i>Fixed</i></li></ul><p>Felix Schäfer wrote:</p>
<blockquote>
<p>I would even argue that that operation is quick enough, and that changes to the <code>IssuePriority</code> list are not frequent and done by administrators, so that the recalculation of the <code>position_name</code> can be done on <code>after_save</code> without filtering.</p>
</blockquote>
<p>Sure, it's quick enough and this issue would not occur but code that runs when it's actually needed is also a good thing.<br />Patch committed, thanks.</p> Redmine - Defect #21504: IssuePriority.position_name not recalculated every time it shouldhttps://www.redmine.org/issues/21504?journal_id=683752016-01-09T08:41:47ZJean-Philippe Langjp_lang@yahoo.fr
<ul><li><strong>Status</strong> changed from <i>Resolved</i> to <i>Closed</i></li></ul>