https://www.redmine.org/https://www.redmine.org/favicon.ico?16793021292018-04-07T22:28:09ZRedmineRedmine - Patch #28494: Recalculate issue priority position names if default value changedhttps://www.redmine.org/issues/28494?journal_id=844152018-04-07T22:28:09ZGo MAEDA
<ul><li><strong>Target version</strong> set to <i>4.1.0</i></li></ul><p>Confirmed the problem, setting target version to 4.1.0.</p> Redmine - Patch #28494: Recalculate issue priority position names if default value changedhttps://www.redmine.org/issues/28494?journal_id=846322018-04-25T06:45:17ZGo MAEDA
<ul></ul><p>Steps to reproduce:</p>
<p>1. Assume that there are 5 active priorities, Low, Normal, High, Urgent, and Immediate. The default priority is Normal.<br />2. On the "Enumerations" page, edit the priority "High" and set the "Default value" flag true.<br />3. Check the CSS class for the issue whose priority is "High". The issue should have "priority-default" class but the actual class is "priority-high3".<br />4. Reorder priorities on "Enumerations" page.<br />5. Check the CSS class of the issue you saw in step 3. Position names are recalculated and the issue has correct CSS class "priority-default".</p> Redmine - Patch #28494: Recalculate issue priority position names if default value changedhttps://www.redmine.org/issues/28494?journal_id=849062018-05-08T06:08:03ZTomomi Yuzuriha
<ul><li><strong>File</strong> <a href="/attachments/20629">0002-Recalculate-issue-priority-position-names-if-default.patch</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/20629/0002-Recalculate-issue-priority-position-names-if-default.patch">0002-Recalculate-issue-priority-position-names-if-default.patch</a> added</li></ul><p>I wrote a test so that this patch will be included in the Redmine core.<br />The test sets the first IssuePriority to the default and tests whether the position_name has changed.</p> Redmine - Patch #28494: Recalculate issue priority position names if default value changedhttps://www.redmine.org/issues/28494?journal_id=849112018-05-08T07:35:35ZGo MAEDA
<ul><li><strong>File</strong> <a href="/attachments/20631">28494-test.patch</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/20631/28494-test.patch">28494-test.patch</a> added</li></ul><p>Tomomi Yuzuriha wrote:</p>
<blockquote>
<p>I wrote a test so that this patch will be included in the Redmine core.</p>
</blockquote>
<p>Thank you for your contribution. I extracted a test from your work and changed the method name. We can apply the following patch to the core.</p>
<ul>
<li><a class="attachment" href="https://www.redmine.org/attachments/20426">0001-Recalculate-issue-priority-position-names-if-default.patch</a> </li>
<li><a class="attachment" href="https://www.redmine.org/attachments/20631">28494-test.patch</a></li>
</ul> Redmine - Patch #28494: Recalculate issue priority position names if default value changedhttps://www.redmine.org/issues/28494?journal_id=849672018-05-12T03:34:20ZGo MAEDA
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>Closed</i></li><li><strong>Assignee</strong> set to <i>Go MAEDA</i></li><li><strong>Target version</strong> changed from <i>4.1.0</i> to <i>4.0.0</i></li></ul><p>Committed the patch by Holger Just and the test by Tomomi Yuzuriha. Thanks.</p>