]> source.dussan.org Git - redmine.git/commitdiff
Changed issues css class from status-{position} to status-{id} (#11304).
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Thu, 26 Jul 2012 16:50:39 +0000 (16:50 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Thu, 26 Jul 2012 16:50:39 +0000 (16:50 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10078 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/models/issue.rb

index 42c833c117b5b7217c69d6314745ad2ea2a65798..f5ff3fc08685c3415235e55d86a8802759acf453 100644 (file)
@@ -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?