1
0
mirror of https://github.com/meineerde/redmine.git synced 2026-02-16 08:32:02 +00:00

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
This commit is contained in:
Jean-Philippe Lang 2016-03-15 22:14:39 +00:00
parent d2001dc949
commit 312d5ae039

View File

@ -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