From: Jean-Philippe Lang Date: Thu, 26 Jul 2012 16:50:39 +0000 (+0000) Subject: Changed issues css class from status-{position} to status-{id} (#11304). X-Git-Tag: 2.1.0~244 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=88efd302a7ff0e1ca3c0ac5a3c3a5910cc7ca2c8;p=redmine.git Changed issues css class from status-{position} to status-{id} (#11304). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10078 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/app/models/issue.rb b/app/models/issue.rb index 42c833c11..f5ff3fc08 100644 --- a/app/models/issue.rb +++ b/app/models/issue.rb @@ -819,7 +819,7 @@ class Issue < ActiveRecord::Base # Returns a string of css classes that apply to the issue def css_classes - s = "issue status-#{status.position} priority-#{priority.position}" + s = "issue status-#{status_id} priority-#{priority.position}" s << ' closed' if closed? s << ' overdue' if overdue? s << ' child' if child?