From eef032a5229ef99f5c45a481c6f92e4256b652b6 Mon Sep 17 00:00:00 2001 From: Vincent Robert Date: Wed, 26 Jun 2024 18:15:38 +0200 Subject: [PATCH] Fix css classes for Issue Priorities --- lib/redmine_tiny_features/issue_priority_patch.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/redmine_tiny_features/issue_priority_patch.rb b/lib/redmine_tiny_features/issue_priority_patch.rb index 8b8bab8..5f48a86 100644 --- a/lib/redmine_tiny_features/issue_priority_patch.rb +++ b/lib/redmine_tiny_features/issue_priority_patch.rb @@ -2,7 +2,8 @@ module RedmineTinyFeatures::IssuePriorityPatch def css_classes - super.to_s + " priority-#{color}" + default_classes = super + color.present? ? "#{default_classes} priority-#{color}" : default_classes end end