From cf9ff4aa381d20fd8e282ce0afcc2686e6b05c47 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 | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/redmine_tiny_features/issue_priority_patch.rb b/lib/redmine_tiny_features/issue_priority_patch.rb index 7560248..5f48a86 100644 --- a/lib/redmine_tiny_features/issue_priority_patch.rb +++ b/lib/redmine_tiny_features/issue_priority_patch.rb @@ -2,9 +2,8 @@ module RedmineTinyFeatures::IssuePriorityPatch def css_classes - classes = super - classes << " priority-#{color}" if color.present? - classes + default_classes = super + color.present? ? "#{default_classes} priority-#{color}" : default_classes end end