From b30f70215660be0c101ae1f30921904be102a883 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Fri, 29 Jul 2011 16:26:41 +0000 Subject: [PATCH] Use #blank? instead. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6323 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/helpers/issues_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/helpers/issues_helper.rb b/app/helpers/issues_helper.rb index 35feb8796..23d5d38c2 100644 --- a/app/helpers/issues_helper.rb +++ b/app/helpers/issues_helper.rb @@ -206,7 +206,7 @@ module IssuesHelper unless no_html label = content_tag('strong', label) old_value = content_tag("i", h(old_value)) if detail.old_value - old_value = content_tag("strike", old_value) if detail.old_value and (!detail.value or detail.value.empty?) + old_value = content_tag("strike", old_value) if detail.old_value and detail.value.blank? if detail.property == 'attachment' && !value.blank? && a = Attachment.find_by_id(detail.prop_key) # Link to the attachment if it has not been removed value = link_to_attachment(a)