summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2016-03-15 22:14:39 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2016-03-15 22:14:39 +0000
commit312d5ae0394720b6a0dd34601021a8653f998022 (patch)
tree5d4f6db62eb0f4fed1869f6e6b162c66189ddf8d
parentd2001dc949cdd58ace70ff7a3fd806426bd409e9 (diff)
downloadredmine-312d5ae0394720b6a0dd34601021a8653f998022.tar.gz
redmine-312d5ae0394720b6a0dd34601021a8653f998022.zip
Hide custom field link values from being shown when value is empty (#21944).
Patch by Anders Thomsen. git-svn-id: http://svn.redmine.org/redmine/trunk@15250 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r--lib/redmine/field_format.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/redmine/field_format.rb b/lib/redmine/field_format.rb
index b2aa67931..de2f8fc5c 100644
--- a/lib/redmine/field_format.rb
+++ b/lib/redmine/field_format.rb
@@ -355,7 +355,7 @@ module Redmine
self.form_partial = 'custom_fields/formats/link'
def formatted_value(view, custom_field, value, customized=nil, html=false)
- if html
+ if html && value.present?
if custom_field.url_pattern.present?
url = url_from_pattern(custom_field, value, customized)
else