Project

General

Profile

Actions

Defect #14674

closed

IssuePriority expects database counters to be pristine

Added by Daniel Sundström over 11 years ago. Updated over 2 years ago.

Status:
Closed
Priority:
Low
Assignee:
-
Category:
Issues
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Wont fix
Affected version:

Description

IssuePriority expects implicitly that the autoincrement counter on the Enumerations-table begins at 0, something
which might not be case when migrating a Redmine installation from one machine to another one.

The result is that all issues are marked graphically as high-priority issues if the counter is off by one or two - or not marked at
all of the counter is off by more than that.

The attached patch changes the IssuePriority to rely on internal position rather than id for selecting proper CSS-classes which
resolves the issue.


Files

redmin-git-patch.diff (724 Bytes) redmin-git-patch.diff Daniel Sundström, 2013-08-12 20:43

Related issues

Related to Redmine - Feature #12216: Textual CSS class for prioritiesClosedJean-Philippe Lang

Actions
Actions #1

Updated by Mischa The Evil over 11 years ago

From #2071#note-14 (note-14)

Jean-Philippe Lang wrote:

The current css class based on ids will be preserved (for future use) but r10720 adds a textual class that do not rely on ids or the number of priorities. See #12216 for more details.

See the notes history of #2071 and #12216 and their related changesets for all the details

Actions #2

Updated by Go MAEDA over 2 years ago

  • Status changed from New to Closed
  • Resolution set to Wont fix

Please use CSS classes described in #12216#note-1.

Actions #3

Updated by Go MAEDA over 2 years ago

Actions

Also available in: Atom PDF