]> source.dussan.org Git - redmine.git/commitdiff
Use #blank? instead.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Fri, 29 Jul 2011 16:26:41 +0000 (16:26 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Fri, 29 Jul 2011 16:26:41 +0000 (16:26 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6323 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/helpers/issues_helper.rb

index 35feb87960b5739a859a61c00d16df3e3375b6f9..23d5d38c284a4905df2a48499434d020666ca416 100644 (file)
@@ -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)