From 88efd302a7ff0e1ca3c0ac5a3c3a5910cc7ca2c8 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Thu, 26 Jul 2012 16:50:39 +0000 Subject: [PATCH] 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 --- app/models/issue.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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? -- 2.39.5