From: Jean-Philippe Lang Date: Sun, 8 Apr 2012 17:30:08 +0000 (+0000) Subject: Adds double quotes around issue change details in plain text notifications (#10603). X-Git-Tag: 2.0.0~214 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=1334cbf78c1dbb35eaaf7d86fa1e4d06319550fe;p=redmine.git Adds double quotes around issue change details in plain text notifications (#10603). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9368 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/app/helpers/issues_helper.rb b/app/helpers/issues_helper.rb index a9cf065e9..0346fdbe3 100644 --- a/app/helpers/issues_helper.rb +++ b/app/helpers/issues_helper.rb @@ -245,7 +245,12 @@ module IssuesHelper value ||= detail.value old_value ||= detail.old_value - unless no_html + if no_html + if value.present? + old_value = "\"#{old_value}\"" if old_value.present? + value = "\"#{value}\"" + end + else 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.blank?